I've never been able to figure out the rules exactly, but conditional my variables tend to fail in the most bizzare ways. I think B::Deparse is showing you how perl actually unravels that loop, which is also how it should be unraveling it.
Changing
tomy $i = 1 for $cond;
Should give you the behavior you want.my $i; $i = 1 for $cond;
-jackdied
In reply to Re: Regarding B::Deparse
by jackdied
in thread Regarding B::Deparse
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |