&callsub(%hashtopass); sub callsub { %hashread = @_;
I don't think this is good practice.. what if you decide to pass a scalar along with that and forgot to shift it out before assigning the list to the hash? you might end up with a corrupted list, or worst, a legitimate list with wrong values shooting yourself in the foot.
In reply to Re: Re: Passing hashes to subs?
by Chady
in thread Passing hashes to subs?
by Massyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |