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; } }
In reply to Re: Exiting the inner loop of a nested loop
by Herkum
in thread Exiting the inner loop of a nested loop
by ww
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |