Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 examining the Monastery: (10)
As of 2014-09-18 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (124 votes), past polls