You appear to be sending $hash and $hash2 into local vars, $h1 and $h2, but then using a variable called $h. Not sure where $h ever gets assigned to anything.
I think if you "use warnings;" this would be more obvious.
In reply to Re: Comparing two deep hash of hashes
by raybies
in thread Comparing two deep hash of hashes
by TJRandall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |