Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: self-feeding infinite loop

by stvn (Monsignor)
on Aug 18, 2007 at 16:46 UTC ( [id://633501]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $counter = 0;
    my $generator = sub { ++$counter };
    ...
    while (1) {
        print $generator->();
    }
    
  2. or download this
    my $gimme_an_A = sub { 'a' };
    
    while (1) {
        print $gimme_an_A->();
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found