Try my %person = %{+shift}; instead. Also check out perlref and perlreftut for some interesting reading on references.
Hope this helps.
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
In reply to Re: Sending an anonymous hash to a sub
by antirice
in thread Sending an anonymous hash to a sub
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |