my %two; foreach my $key ( keys %one ) { $two{ $key } = [ @{ $one{ $key } } ]; }
in order to create values which are new anonymous arrays containing the same contents as those in the original hash.
I hope this is helpful.
Cheers,
JohnGG
In reply to Re: Copy of multidimensional hash
by johngg
in thread Copy of multidimensional hash
by tommaso.fornaciari
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |