Pass arrays and hashes by reference, using the backslash operator: "\"
This actually from The Perl Cookbook: Section 10.5. Passing Arrays and Hashes by Reference. Get yourself a copy it's good value for money!
Hope this helps.
In reply to Re: Passing hash and hashref to sub
by dHarry
in thread Passing hash and hashref to sub
by ewhitt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |