dereferencing hash from params
- by k0re
Hi,
This code works:
my $href = shift @_; # get reference to hash
my %h = %{$href}; # dereference hash
This one does not:
my %h = %{shift @_};
As well as this one:
my %h = ${$_[0]}
Why?