my %two; foreach my $key ( keys %one ) { $two{ $key } = [ @{ $one{ $key } } ]; }