Then you will have a simple hash reference and the arrow notation will work.report_block($report_data{$domain}{$provider}); sub report_block { my ($rpt_ref) = shift; print Dumper($rpt_ref); #access elements here! print $rpt_ref->{total}; }
In reply to Re: Dereferencing a portion of a hash
by tall_man
in thread Dereferencing a portion of a hash
by THRAK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |