Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
[PriNet]: ok, i'm stumped... how do you split a string in javascript when the string was joined with chr(255) in perl ? string.split( String.fromCharCod e(255)); does not work... (help)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2017-03-24 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (295 votes). Check out past polls.