Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: If I was forced to use only one kind of loop for the rest of my days it would be a

by Moron (Curate)
on Oct 04, 2005 at 11:25 UTC ( #497208=note: print w/replies, xml ) Need Help??


in reply to Re: If I was forced to use only one kind of loop for the rest of my days it would be a
in thread If I was forced to use only one kind of loop for the rest of my days it would be a

(Updated) I rather feel some people would regret their choices. Only recursion can replace all the others, although I voted for for, because recursion is not technically a loop and in many replacement scenarios it would need some horrible overworking to overcome certain scoping issues, but for has enough machinery to replace everything else except recursion. For example, while (condition) is functionally the same as for (;condition;) and do {} while (condition) could be replaced by for (my $first = 1; $first or condition; $first=0) {}
  • Comment on Re^2: If I was forced to use only one kind of loop for the rest of my days it would be a
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://497208]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2017-09-22 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (257 votes). Check out past polls.

    Notices?