Subject: | test.pl: new version of Test::Builder changes semantics |
Mail-Box-2.061
test.pl uses Test::Builder in the following way:
# we use Test::More without a plan here, but we don't want
# Test::Builder to mess with the exit code
Test::Builder->no_ending(1);
With Test::Builder 0.30 (I am not sure of prior versions) the semantics have changed to OO semantics. The code above gives the error:
Can't use string ("Test::Builder") as a HASH ref while "strict refs" in use at /usr/local/lib/perl5/5.8.5/Test/Builder.pm line 981
The following change corrects the problem.
# we use Test::More without a plan here, but we don't want
# Test::Builder to mess with the exit code
my $Test = Test::Builder->new();
$Test->no_ending(1);