Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 avoiding work at the Monastery: (10)
As of 2016-06-30 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (403 votes). Check out past polls.