Do you know where your variables are? | |
PerlMonks |
call subroutines via hashby fortesque (Acolyte) |
on Jan 04, 2006 at 20:51 UTC ( [id://521012]=perlquestion: print w/replies, xml ) | Need Help?? |
fortesque has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks:
I have been trying various ways to call multiple subroutines(windows XP, OS) (I'm writing a Tk program that has serveral hundred Tk callbacks) and so far have been unsuccessful. I'm a beginner and my Perl knowledge is limited, and more mechanical than intuitive. The following experimental code calls only the first subroutine not the second. Can anyone help me figure out how to get the code to call the second subroutine as well? Both subroutines work when run as standard named routines and not part of a hash. Thanks JWB #when code is run, "the answer is 9" is printed along with "moo is the answer" and "foo is the answer".
Back to
Seekers of Perl Wisdom
|
|