[Nagiosplug-devel] Nagios::Plugin api

Gavin Carr gavin at openfusion.com.au
Thu Sep 7 05:48:25 CEST 2006


On Wed, Aug 30, 2006 at 10:19:25AM +0100, Ton Voon wrote:
> 
> On 30 Aug 2006, at 01:40, Gavin Carr wrote:
> >- Implementation detail: Nagios::Plugin does a 'use 5.008004' - is  
> >that deliberate? If not, how backwards compatible do we want to be? The
> >code uses lots of 'our's and 'use warnings', both of which are 5.6-isms,
> >I think. Do we want to be able to work with older perls? There are still
> >lots of 5.005003 installs out there, for instance.
> 
> I have to admit to ignorance between all the different perl versions.  
> Is there somewhere that highlights the differences between perl  
> releases? This is a tough call.

The only stuff I've been able to find are perlhist and the various 
perlNNNdelta man pages (web versions here: 

  http://perldoc.perl.org/index-history.html

). There's also Module::CoreList that will tell you when a particular
module made it into the core, but that's not particularly relevant here
either.

I'd be surprised if the current Nagios::Plugin code wouldn't work 
on anything >= 5.6.0 - anyone got an install they could test it on?

The real question is if we want to support anything earlier. 'our'
and 'use warnings' were introduced in 5.6.0. 'our' we can replace
easily with 'use vars', but I'm not clear on whether we can do
'local $^W = 1' in a module instead of 'use warnings' and have that
to the right thing. 

I guess worst case we could not have warnings turned on in the modules
themselves, but turn them on for tests, say?

Cheers,
Gavin





More information about the Devel mailing list