in reply to recursively comparing heterogenous data structures
use Storable; $Storable::canonical = 1; my compare { Storable::freeze($_[0]) eq Storable::freeze($_[1]) }
update:The above gets hashes right (by sorting their keys); however, it doesn't allow ignoring ordering of lists as the original code does.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: recursively comparing heterogenous data structures
by thraxil (Prior) on Jul 08, 2001 at 01:31 UTC |