Subject: | missing import of croak() |
Date: | Fri, 16 Feb 2018 18:49:59 +0000 |
To: | bug-Fsdb [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
The Fsdb::Filter::dbcolstats module includes what's meant to be a call
to croak(), but doesn't import it, so that code doesn't work. The module
should import croak() from the Carp module.
Incidentally, the way the reference to croak() compiles in the absence of
the importation makes the concatenations (meant to construct the argument
to croak()) the top-level operators in that expression. This ought to
yield a warning about concatenation in void context, but prior to Perl
5.27.7 there was a core bug preventing that from warning. Starting in
Perl 5.27.7 that bug has been fixed, and a warning is now generated when
compiling that module, which causes Fsdb to fail its test suite.
-zefram