On 05/09/07, Fergal Daly <[EMAIL PROTECTED]> wrote: > On 05/09/07, Gabor Szabo <[EMAIL PROTECTED]> wrote: > > I would like to compare data structure in some non-test code. > > Test::Deep seems to give all the features I need, except that it is > > integrated with > > the testing framework. > > use Test::Deep::NoTest; > print "equal" if eq_deeply($a, $b); > > but it's not documented and doesn't export as many comparators as > Test::Deep so it's not as convenient, I'll fix that. You can then use > eq_deeply to compare without involving Test::Builder. You don't get > the diagnostics though.
Turns out it was documented, it's mentioned briefly in Test::Deep's POD. > I'll try improve the situation over the weekend. 0.98 is on its way to CPAN. Now Test::Deep::NoTest has some POD of its own. Also it automatically exports all the same stuff, F > It's been on my todo list forever to make a Data::Deep module and just > call it from Test::Deep > > F > > > How could I use that or what else should I use to compare two deep > > data structures? > > > > Gabor > > >