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