Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: break/continue statements

by ivey (Beadle)
on Jun 06, 2000 at 07:17 UTC ( [id://16546]=note: print w/replies, xml ) Need Help??


in reply to break/continue statements

what you want are next and last:
while ($some_condition == 1) { if ($want_to_start_over) { next; } elsif ($want_to_quit) { last; } &do_whatever_else; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-24 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found