![]() |
|
more useful options | |
PerlMonks |
Re: using next in a nested foreach()by gryphon (Abbot) |
on Aug 16, 2005 at 01:36 UTC ( #484040=note: print w/replies, xml ) | Need Help?? |
Greetings sandrider, In addition to using labels as two other monks have suggested already, you could use last to exit the inner loop, thus nexting to the outer loop.
TMTOWTDI. Update: I moved the m// outside the inner foreach due to japhy's comment. No idea why I didn't see that before. Doh. gryphon
In Section
Seekers of Perl Wisdom
|
|