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: 15272
Status: resolved
Priority: 0/
Queue: PPI

People
Owner: Nobody in particular
Requestors: thaljef [...] cpan.org
Cc:
AdminCc:

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



Subject: Statement::Variable not recognized in some contexts
Download (untitled) / with headers
text/plain 199b
PPI doesn't recognize 'my $foo' as a Statement::Variable in these contexts: for my $foo (@list) { print $foo } foreach my $foo (@list) { print $foo} open my $foo, $filename; Should it? -Jeff
Download (untitled) / with headers
text/plain 681b
On Mon Oct 24 23:58:23 2005, guest wrote: Show quoted text
> PPI doesn't recognize 'my $foo' as a Statement::Variable in these
contexts: Show quoted text
> > for my $foo (@list) { print $foo } > foreach my $foo (@list) { print $foo} > open my $foo, $filename; > > Should it? > > -Jeff
WONTFIX In this case, I'll say no. Statement::Variable is essentially describing an expression that has the main purpose of declaring a variable. So... my $foo = 'bar'; What might have to happen, is that the ->variables type method gets put on Node rather than Statement::Variable and becomes more like a role. But that's one of the trickier structural changes than we need to make down the line. But for now, no


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.