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.)
In reply to Re: Assign in loop with and without declaration
by ikegami
in thread Assign in loop with and without declaration
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |