in reply to Re: A quandry in Towers of Hanoi
in thread A quandry in Towers of Hanoi

Hi, tilly, thank you for your suggestion on the print statement, however, as you can see in my update, something's wrong. I looked up the 'map' function, but perldoc was not very helpful.

ki6jux

"No trees were harmed in the creation of this node. However, a rather large number of electrons were somewhat inconvenienced."

Replies are listed 'Best First'.
Re^3: A quandry in Towers of Hanoi
by tilly (Archbishop) on May 15, 2009 at 17:13 UTC
    I said \@polea to create a reference to your array while you said \$polea which creates a reference to a non-existent scalar. Hence the problem.

    Implement the print statement as I actually wrote it and the program will run correctly. Also see references quick reference if references are confusing you.

      Oops, I hate it when I do that!

      Thanks, it worked fine.

      ki6jux

      "No trees were harmed in the creation of this node. However, a rather large number of electrons were somewhat inconvenienced."