Jenda has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone know an easy way (a module or something) to compare two data structures (iregular HoHoA)? I don't need to get the differences printed to anywhere all I'd need is to be able to test whether $A contains all the data in $B (I don't mind if $A contains some more fields).
I'd like to add a few tests to XML::DTDParser and to me the easiest solution seems to be to (when creating the tests) parse a few DTDs, dump the results to files with Data::Dumper and then the tests will try to parse the same DTDs again and see if they get the same results.
Thanks, Jenda
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Compare data structures (without loops)
by jasonk (Parson) on Feb 19, 2003 at 17:45 UTC | |
by Jenda (Abbot) on Feb 19, 2003 at 20:46 UTC | |
by Aristotle (Chancellor) on Feb 19, 2003 at 22:50 UTC |
Back to
Seekers of Perl Wisdom