Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How To: Make An Iterator

by ihb (Deacon)
on Apr 26, 2005 at 14:17 UTC ( [id://451582]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub infinite_evens {
      my ($i) = @_;
      $i += $i % 2 - 2;
      return sub { $i += 2 };
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-18 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found