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

Re^2: Recursively-generated Iterators

by Roy Johnson (Monsignor)
on May 23, 2005 at 15:57 UTC ( #459604=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub hanoi {
        my ($disks, $start, $end, $via) = @_;
    ...
                 hanoi($disks-1, $via, $end, $start)
               );
    }
    
  2. or download this
    sub iter_hanoi {
        my ($disks, $start, $end, $via) = @_;
    ...
            return $rval;
        }
    }
    
  3. or download this
    sub iter_choose_n {
        my $n = pop;
    ...
            return $rval;
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-12-19 01:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (70 votes), past polls