It's not clear what you want to achieve, but most likely you want a deep copy like this:
for my $key (keys %tmp) { $hash{$key} = [@{$tmp{$key}}]; }
In reply to Re: help reassigning hash with arrayref
by GrandFather
in thread help reassigning hash with arrayref
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |