in reply to Trouble passing hash into function
SUMMARY: How do I take a hash being passed into a function as @_ and convert it to a hash I can do something with, like %myhash?If that's what you really want to do, you don't have to do very much at all
hashy( %x ); sub hashy { my %myhash = @_ }
That should do what you want.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trouble passing hash into function
by dbonneville (Acolyte) on Sep 05, 2007 at 23:02 UTC | |
by GrandFather (Saint) on Sep 05, 2007 at 23:13 UTC |