|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: How Do I pass a hash to a subroutine?by thephpguy (Initiate) |
| on May 06, 2011 at 18:06 UTC ( [id://903428]=note: print w/replies, xml ) | Need Help?? |
|
MeowChow's code for passing by reference is VERY inefficient unless you actually want a copy of the Hash. (Why pass by ref if you want a copy?)
With the above code any modification will affect the original hash.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||