Subject: | checks "defined @$" instead of "defined $@" |
Well, is this critical? I'm not sure.
I thought it was only cosmetic, because it was raising a "you're using defined ARRAY" warning,
which is just a warnings.
But when I found the error, it was checking "defined @$" when it really wanted to test $@ to see
whether an eval completed successfully. This is wrong not only because of the sigil
transposition, but also because $@ is set to an empty (defined) string on no-error, meaning that
the test doesn't work even with the transposition fixed.
_test_sixteen in Cache::CacheTester should instead end like this:
( $ok ) ?
$self->ok( ) : $self->not_ok( "couldn't create autopurge cache" );
I couldn't provide a pull request because I didn't see a repo. :-)
--
rjbs