Skip Menu |

This queue is for tickets about the Params-Validate CPAN distribution.

Report information
The Basics
Id: 29339
Status: resolved
Priority: 0/
Queue: Params-Validate

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

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



Subject: tests fail with: '":types" is not exported by the Params::Validate module'
Tests fail with ":types" is not exported by the Params::Validate module. I can't reproduce the error, though clearly it is affecting a lot of systems: http://cpantesters.perl.org/show/Nagios-Plugin.html#Nagios-Plugin-0.20 I'd appreciate any help. If I can have access to a failing system, I can investigate further.
This seems to be fixed in Nagios::Plugin 0.21 as the CPAN Testers reports success: http:// cpantesters.perl.org/show/Nagios-Plugin.html#Nagios-Plugin-0.21 I think the relevant change is this: Modified: Nagios-Plugin/trunk/lib/Nagios/Plugin/Functions.pm ========================================================= ========== --- lib/Nagios/Plugin/Functions.pm 2007-09-24 00:30:14 UTC (rev 1794) +++ lib/Nagios/Plugin/Functions.pm 2007-09-24 18:45:59 UTC (rev 1795) @@ -8,7 +8,7 @@ use strict; use warnings; use File::Basename; -use Params::Validate qw(validate :types); +use Params::Validate qw(:types validate); use Math::Calc::Units; # Remember to update Nagios::Plugins as well So my guess is that there is some limitation in Params::Validate (maybe only the C version?) that all colon attributes must come before non-colon attributes. Will see if I can re-assign this RT to Params::Validate queue.
I can't reproduce this bug with either the Perl or XS version. Params::Validate is simply using Exporter, so that may be the culprit, but without a clear reproduction recipe I'm inclined to think that the initial diagnosis was incorrect.