in reply to Exiting the inner loop of a nested loop
Sounds what you are look for is last() but you need a label to go with to exit out of a multiple loops that you are in, this is a sample that should give you the idea,
LOOP: foreach my $no (@nos) { foreach my $counter (@counters) { last LOOP if $counter > 100; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Exiting the inner loop of a nested loop
by ww (Archbishop) on Apr 14, 2006 at 13:18 UTC |