Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 imbibing at the Monastery: (3)
As of 2024-07-13 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.