On 30/04/2011 19:22, Parag Kalra wrote:
Hi,

I am evaluating different approaches to compare data structures in Perl -
i.e whether they are same or not.

I am planning to start wit:

1. Data::Compare

2. And then found this -
http://stackoverflow.com/questions/1273616/how-do-i-compare-two-hashes-in-perl-without-using-datacompare

Any other options or suggestions?

I would like to use the most efficient.

I suggest you take a look at

  perldoc -q "How do I test whether two arrays or hashes are equal?"

But have you established that Data::Compare is too inefficient? I
imagine a lot has gone into making it work as well as possible, and if
it is not causing a bottleneck problem then you should go ahead and just
use it.

Rob

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to