Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Looping based on a Conditional

by izut (Chaplain)
on Jul 20, 2006 at 17:13 UTC ( [id://562636]=note: print w/replies, xml ) Need Help??


in reply to Looping based on a Conditional

You're looking for redo:
my $c = 0; BLOCK: { print "Hi there!\n"; redo BLOCK if $c++ < 10; }

Igor 'izut' Sutton
your code, your rules.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found