Welcome to the Monastery | |
PerlMonks |
Modifying a hash in a subroutine?by C_T (Scribe) |
on Aug 19, 2004 at 21:08 UTC ( [id://384458]=perlquestion: print w/replies, xml ) | Need Help?? |
C_T has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to modify/populate a hash in a subroutine, and I want to avoid using global variables since the sub may be in a separate module.
Although the following code works, I KNOW there's a more elegant way to do this. Can anyone help?
Thanks!
Charles Thomas Madison, WI
Back to
Seekers of Perl Wisdom
|
|