Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by radiantmatrix (Parson)
on Oct 06, 2005 at 21:35 UTC ( [id://498063]=note: print w/replies, xml ) Need Help??


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

What about until? I voted for while, in any case, because I can trivally (if annoyingly) make for loops with while, but the other way 'round is not so easy.

my $counter = 0; while ($counter <= 5) { print $counter; $counter++; }
<-radiant.matrix->
A collection of thoughts and links from the minds of geeks
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law
  • Comment on Re: If I was forced to use only one kind of loop for the rest of my days it would be a
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-16 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found