Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the PPI CPAN distribution.

Report information
The Basics
Id: 14773
Status: resolved
Priority: 0/
Queue: PPI

Owner: Nobody in particular
Requestors: thaljef [...]

Bug Information
Severity: Normal
Broken in: 1.003
Fixed in: (no value)

Subject: PPI::Statement::Variable->variables() returns empty list
Download (untitled) / with headers
text/plain 414b
Adam- I noticed this while working on Perl::Critic. If I'm not mistaken, this should print "$foo $bar $baz". But instead, it prints nothing. I get the same behavior with C<our> and C<local> declarations. use PPI; my $code = <<'END_PERL'; my ($foo, $bar, $baz) = (1,2,3); END_PERL my $doc = PPI::Document->new(\$code); $var = $doc->find_first('PPI::Statement::Variable'); print join ' ', $var->variables();

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to