good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Exit while loop on first matchby jynx (Priest) |
on Apr 30, 2002 at 21:16 UTC ( [id://163163]=note: print w/replies, xml ) | Need Help?? |
Possibly not the style you wish to go with, But in such a situation i would use a bare block loop. Mostly i use them when there are multiple loop modifiers that i want to simplify, and this (sort of) fits that description. In any event, it gets rid of extra variables... something like that maybe, jynx
In Section
Seekers of Perl Wisdom
|
|