in reply to Re^3: Assign in loop with and without declaration
in thread Assign in loop with and without declaration
Do you think the warning
"Deprecated use of my() in false conditional"should be extended to
"Deprecated use of my() in false conditional or loop"which would then trigger for both of the following cases:
$ /usr/local/bin/perl5.10.0 -w my $x if 0 __END__ Deprecated use of my() in false conditional at - line 2. $ /usr/local/bin/perl5.10.0 -w my $x = $_ for (1 .. 3); __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Assign in loop with and without declaration
by rir (Vicar) on May 22, 2008 at 14:51 UTC |