in reply to Re: Re: Insensitive Scoundrel
in thread Insensitive Scoundrel
Now, what would you expect that loop to return, if it were like a map? You can't skip or restart map in the same way, you realise, probably because it could cause some very strange behavior.for my $foo (@bars) { next if ($foo > 10); last if ($foo == 42); $foo += 12; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Insensitive Scoundrel
by John M. Dlugosz (Monsignor) on Sep 27, 2002 at 14:42 UTC | |
|
map and foreach are the same
by John M. Dlugosz (Monsignor) on Oct 03, 2002 at 19:03 UTC | |
by Aristotle (Chancellor) on Oct 04, 2002 at 20:22 UTC |