Skip Menu |

This queue is for tickets about the POE-API-Peek CPAN distribution.

Report information
The Basics
Id: 44395
Status: resolved
Priority: 0/
Queue: POE-API-Peek

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.32
Fixed in: (no value)



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; my $poe_version = $POE::VERSION; $poe_version =~ s/_.+$//; 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__."."); } }
1.33 just went out and should fix the problem.