in reply to Re: Passing hashes to subs?
in thread Passing hashes to subs?
&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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing hashes to subs?
by crenz (Priest) on Aug 01, 2002 at 12:46 UTC |