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
    Thank you

    ... but I had tried that (see "Note 1").

    As nearly I can see, I was using basically your syntax, but that has the effect of ALLOWING the inner loop's processing of lines in which $values[1] is zero... which is what I'm trying to avoid. Apologies for the lack of clarity in OP.