[Nagiosplug-devel] Nagios::Plugin api

Vonnahme, Nathan nathan.vonnahme at bannerhealth.com
Thu Sep 7 19:27:42 CEST 2006


I guess I would first try removing the 'use 5.008004' line, getting it
the way we want it with perl 5.8, and  ignoring older perls for now-- we
should be compatible with any relatively recent build of perl, and it's
easy enough to retrofit if someone needs it.
 

> -----Original Message-----
> From: nagiosplug-devel-bounces at lists.sourceforge.net 
> [mailto:nagiosplug-devel-bounces at lists.sourceforge.net] On 
> Behalf Of Gavin Carr
> Sent: Wednesday, September 06, 2006 7:48 PM
> To: Nagios Plugin Development Mailing List
> Subject: Re: [Nagiosplug-devel] Nagios::Plugin api
> 
> 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
> 
> 
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> _______________________________________________________
> Nagios Plugin Development Mailing List 
> Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at 
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 




More information about the Devel mailing list