in reply to Re: confused with a hash which contains reversed keys
in thread confused with a hash which contains reversed keys

i think that your code has a bug...
look carefylly the AA and ZZ these keys have not the correct values(the values are doupled)
  • Comment on Re^2: confused with a hash which contains reversed keys

Replies are listed 'Best First'.
Re^3: confused with a hash which contains reversed keys
by Anonymous Monk on Dec 04, 2007 at 14:06 UTC
    if you use that the code is ok if ( defined($hash{reverse($_)})and $hash{reverse($_)} ne $hash{$_} )