By saying, my %h_ref = %{+shift}; in the sub, you make a copy of the hash which all your work goes into. Instead,
That works on the original external hash.my $h_ref = shift; # ... $h_ref->{'one'}= 'thing_' . $tail; # etc
After Compline,
Zaxo
In reply to Re: Passing hashes by reference
by Zaxo
in thread Passing hashes by reference
by wolis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |