in reply to Re^2: how can i replace a hash key with other hash value?
in thread how can i replace a hash key with other hash value?
becomes:for my $eng (keys %hash){ $hash{$hash_tr_fr{$eng}}=$hash{$eng}; delete $hash{$eng}; }
Update: corrected missing @, thanks SuicideJunkiemy @temp = keys %hash; @hash{@hash_tr_fr{@temp}} = delete @hash{@temp};
|
|---|