by-pass road is modifying of the left part and a bit of right one:
$hash{keys %hash} = $_ for delete @hash{sort { $a<=>$b } keys %hash};
In reply to Re^2: re-key a hash (tye)
by ccn
in thread re-key a hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |