Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How do I get $_ out of PPI::Token::Quote::Double using some PPI/PPIx module/method?
Say I have
#!/usr/bin/perl -- use strict; use warnings; use PPI; use PPI::Dumper; # Load a document my $Module = PPI::Document->new( \q{ print "hi $_\n"; }); print join "\n", PPI::Dumper->new( $Module )->list , "\n"; __END__ PPI::Document PPI::Token::Whitespace ' ' PPI::Statement PPI::Token::Word 'print' PPI::Token::Whitespace ' ' PPI::Token::Quote::Double '"hi $_\n"' PPI::Token::Structure ';' PPI::Token::Whitespace ' '
How do I get $_ out of PPI::Token::Quote::Double using some PPI/PPIx module/method ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: variables /interpolations inside PPI::Token::Quote::Double quoted string
by tobyink (Canon) on May 19, 2013 at 21:41 UTC | |
|
Re: variables /interpolations inside PPI::Token::Quote::Double quoted string
by Cow1337killr (Monk) on Sep 06, 2016 at 03:54 UTC | |
by Anonymous Monk on Sep 06, 2016 at 06:55 UTC |