Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Recursively-generated Iterators

by runrig (Abbot)
on May 20, 2005 at 04:39 UTC ( #458851=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    while (my @arr = $iter->()) {
      print "@arr\n";
    }
    
  2. or download this
    sub choose_n {
      my $n = shift;
    ...
        @set[$iter->()];
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://458851]
help
Chatterbox?
[marto]: who are we talking about?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-06-23 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (539 votes). Check out past polls.