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.