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
In reply to Re^2: References, hashes, and tie() -- oh my
by jZed
in thread References, hashes, and tie() -- oh my
by jacques
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |