Subject: | Throws spurious warnings for development POE versions |
The following code throws warnings when running against development
versions of POE. This breaks any tests for downstream CPAN modules at
arbitrary recursion, if they use Test::NoWarnings in any tests.
BEGIN {
use POE;
if($POE::VERSION < '1.0001') {
die(__PACKAGE__." is only certified for POE version 1.0001 and up and
you are running POE version " . $POE::VERSION . ". Check CPAN for an
appropriate version of ".__PACKAGE__.".");
}
}
This can be fixed a with a simple dev version stripper.
BEGIN {
use POE;
if($POE::VERSION < '1.0001') {
die(__PACKAGE__." is only certified for POE version 1.0001 and up and
you are running POE version " . $POE::VERSION . ". Check CPAN for an
appropriate version of ".__PACKAGE__.".");
}
}