in reply to Regarding B::Deparse
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regarding B::Deparse
by demerphq (Chancellor) on Oct 19, 2001 at 19:22 UTC |