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
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
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