Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Exit while loop on first match

by erikharrison (Deacon)
on Apr 30, 2002 at 17:00 UTC ( [id://163128]=note: print w/replies, xml ) Need Help??


in reply to Exit while loop on first match

The previous suggestions to use last are excellent. A loop label might help:

MATCH: while { ... last MATCH; }

Also, I use the phrase "synthectic code" to refer to architectural code: hacks that just exist as a frame to make the algorithm work. This is a phrase stolen from a perl.com article, http://www.perl.com/pub/a/2000/06/commify.html

Cheers,
Erik

Update: Forgot a colon . . . boy is my face red . . .

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163128]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found