adamkennedy/PPI — pull request #151 by karenetheridge (2014-12-18 04:24:20+00:00)
Title: Allow statements as well as structures and tokens to be inserted adjacent to a token

Otherwise, this would be impossible:

my $doc = PPI::Document->new(\ "1;\n");
my $token = $doc->last_element;

my $new_document = PPI::Document->new(\ '$foo = 1;');
$token->insert_after($_) foreach reverse $new_document->schildren;