Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: How many loops are there in Perl?

by davido (Archbishop)
on Jan 31, 2012 at 07:11 UTC ( #950896=note: print w/ replies, xml ) Need Help??


in reply to Re: How many loops are there in Perl?
in thread How many loops are there in Perl?

Naked blocks can be loops with no need for goto or labels:

my $i = 0; { redo if $i++ < 10; }

But as worded, the question is difficult to answer; it's hard to know what the person asking is really after and what he or she has or hasn't considered.


Dave


Comment on Re^2: How many loops are there in Perl?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2015-07-04 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls