sub _ss { my ($self, %arg) = @_; print Dumper(\%arg); }
... so what you probably want is something like:
or maybe:sub _ss { my ($self, $hashref) = @_; print Dumper($hashref); # do stuff with $hashref }
sub _ss { my ($self, $hashref) = @_; my %hash = %$hashref; print Dumper(\%hash); # do stuff with %hash }
Give a man a fish: <%-{-{-{-<
In reply to Re: Problems passing hash reference
by AnomalousMonk
in thread Problems passing hash reference
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |