in reply to Passing hash and hashref to sub

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.