![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: References with hashesby chargrill (Parson) |
on Feb 15, 2007 at 04:50 UTC ( #600133=note: print w/replies, xml ) | Need Help?? |
This simple change gets your program closer to working:
After this change, running it only gives the error "Undefined subroutine &main::print_address called at bray.pl line 17." You could also do this:
I believe it has something to do with the hash key not existing as you're trying to declare it lexically, but I couldn't find anything concrete (to me) in the docs. See my and perlsub for more details. --chargrill
In Section
Seekers of Perl Wisdom
|
|