Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

RE: (tye)RE: The Best Infinite Loop

by rdw (Curate)
on Oct 17, 2000 at 14:23 UTC ( #37117=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ()  { $_++; last if $_ == 1000; }
    while (1) { $_++; last if $_ == 1000; }
    for (;;)  { $_++; last if $_ == 1000; }
    
  2. or download this
    for (;;) {
        ++$_;
        last if $_ == 1000;
    ...
        last if $_ == 1000;
    }
    test.pl syntax OK
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-07-12 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls