in reply to Assign in loop with and without declaration
Don't use a statement modifier on an my. It's a bug to do so. This is even explicitly mentioned in perlsyn.
There is no answer to your "why?" since the docs specifically say that's Perl's behaviour in that situation can be anything. (That would include crashing.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Assign in loop with and without declaration
by andreas1234567 (Vicar) on May 22, 2008 at 09:35 UTC | |
by Anonymous Monk on May 22, 2008 at 09:53 UTC | |
by andreas1234567 (Vicar) on May 22, 2008 at 10:34 UTC | |
by rir (Vicar) on May 22, 2008 at 14:51 UTC |