in reply to help reassigning hash with arrayref
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}}]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help reassigning hash with arrayref
by mhearse (Chaplain) on Nov 15, 2011 at 23:25 UTC | |
by GrandFather (Saint) on Nov 15, 2011 at 23:29 UTC | |
by mhearse (Chaplain) on Nov 16, 2011 at 00:07 UTC | |
by Anonymous Monk on Nov 16, 2011 at 02:34 UTC |