However, both this and the prior version I suggested suffer from a potential problem having to do with floating point accuracy and the stringification of numbers. Be warned. If you're not using numbers, both will work OK.use Storable 'freeze'; $Storable::canonical = 1; if (freeze(\%hash1) eq freeze(\%hash2)) { # they're equal }
In reply to Re: How to test equality of hashes?
by bikeNomad
in thread How to test equality of hashes?
by acser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |