PPI
PPI copied to clipboard
[perlre](http://perldoc.perl.org/perlre.html): ``` e - evaluate the right-hand side as an expression ee - evaluate the right side as a string then eval the result ``` `input.pl` file: ``` perl #!/usr/bin/env...
The following code fragment is incorrectly being parsed as a regular expression from '/' through to '/yn2011' --cut here-- is_deeply \%/, $target => 'Returned correct data structure'; **DATA** Nathan Gray...
This is perl 5, version 22, subversion 0 (v5.22.0) built for x86_64-linux-thread-multi-ld ``` $ perl -MV=PPI,Perl::Critic PPI /pro/lib/perl5/site_perl/5.22.0/PPI.pm: 1.220 Perl::Critic /pro/lib/perl5/site_perl/5.22.0/Perl/Critic.pm: 1.125 $ cat ppi-rt.pl ``` ``` perl package main;...
The files in git seems fine, but in the `MITHALDU/PPI-1.220.tar.gz` that I get from CPAN, the following files are all marked executable (0755): ``` Changes LICENSE MANIFEST META.yml Makefile.PL README...
See: https://rt.cpan.org/Ticket/Display.html?id=73344 https://rt.cpan.org/Ticket/Display.html?id=67842
I wanted to report this since I find this module very useful Example code: use PPI; use Data::Dumper; print Dumper(PPI::Document->new(\'"a".1')); The output is: $VAR1 = bless( { 'readonly' => '',...
Perl allows whitespace between a sigil and its identifier, but PPI doesn't support it. `@ foo` is the same as `@foo` and should parse as PPI::Token::Symbol, but doesn't: ``` $...
PPI::Token::Magic and the Changes file explicitly make "$::|" a magic variable, but I haven't found a version of perl that will compile it: ``` perl -le 'say STDOUT $::|' syntax...
throw on existing PPI::Exception object does not add callers info unless callers already populated
If throw is called on the PPI::Exception class name, callers information is populated inside the object: ``` perl -MData::Dumper -WE 'use PPI::Exception; eval { PPI::Exception->throw() }; say Dumper $@->callers' $VAR1...
PPI::Element::insert_before is documented as: ``` In future, this method may be enhanced to allow the insertion of multiple Elements, inline-parsed code strings or L objects. ``` Indeed, this method (and...