Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

how to add a PPI:Statement to a document?

by blahblahblah (Priest)
on Dec 28, 2007 at 20:23 UTC ( #659394=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $newStatement = PPI::Token::Comment->new();
      $newStatement->set_content(qq{\n# $newVar = ${quote}$newValue${quote
    +};\n});
      $lastVar->insert_after($newStatement);
    
  2. or download this
            my $newStatement = PPI::Statement->new();
            $newStatement->set_content(qq{\n1; #testing\n});
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://659394]
Approved by Limbic~Region
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-10-01 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (32 votes), past polls