Gabor Szabo 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.
> 
> How could I use that or what else should I use to compare two deep
> data structures?

Here's how to shut up Test::Builder.  This works with any Test::Builder
derived module.

use Test::Deep;

use Test::Builder;
use File::Spec;

my $tb = Test::Builder->new;
$tb->plan("no_plan");
$tb->no_diag(1);
$tb->no_ending(1);
$tb->no_header(1);
$tb->output( File::Spec->devnull );

print cmp_deeply( "foo", "bar" ) ? "Yes" : "No";


-- 
There will be snacks.

Reply via email to