in reply to Re: References, hashes, and tie() -- oh my
in thread References, hashes, and tie() -- oh my
my ($hash) = @_; is spelled better as my $hash = shift;Why? With the first way, if you change your mind about the number of params you can change just the left hand side, but with your way, if you change the left hand side and forget to change the right, you'll end up with a hard to spot bug
|
|---|