This wheel has been invented several times, but Data::Compare or Struct::Compare seem to be the closest to what you are looking for.
In reply to Re: Compare data structures (without loops)
by jasonk
in thread Compare data structures (without loops)
by Jenda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |