Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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?
[marto]: red meat

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-11-22 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (319 votes). Check out past polls.

    Notices?