Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    hanoi( $disk, 'A', 'B', 'C', \&check_move );
    hanoi( $disk, 'A', 'B', 'C', \&hprint );
    
  2. or download this
    Use of uninitialized value in subroutine entry at hanoi.pl line 33.
    Can't use string ("") as a subroutine ref while "strict refs" in use a
    +t hanoi.pl line 33.