The stupid question is the question not asked | |
PerlMonks |
Re: How Do I pass a hash to a subroutine?by MeowChow (Vicar) |
on Feb 26, 2001 at 05:15 UTC ( [id://60804]=note: print w/replies, xml ) | Need Help?? |
Hashes can be passed either by value:
or by reference: Each approach has it's advantages and disadvantages. Pass-by-value offers a simpler syntax, while pass by reference is faster and more flexible, allowing you to easily intermingle the hash with other parameters.
In Section
Seekers of Perl Wisdom
|
|