for my $k (keys %$init_hash) { $new_cmd->{$k} = $init_hash->{$k}; }