for my $key ( sort keys %hash ) { my $rev = reverse $key; $hash{ $rev } += delete $hash{ $key } if $rev ne $key; }
In reply to Re: confused with a hash which contains reversed keys
by Anonymous Monk
in thread confused with a hash which contains reversed keys
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |