Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 avoiding work at the Monastery: (12)
As of 2014-08-29 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls