Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: A quandry in Towers of Hanoi

by pmonk4ever (Friar)
on May 15, 2009 at 16:42 UTC ( #764311=note: print w/ replies, xml ) Need Help??


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."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2016-06-30 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (396 votes). Check out past polls.