Skip Menu |

This queue is for tickets about the Nagios-Plugin CPAN distribution.

Report information
The Basics
Id: 92032
Status: resolved
Priority: 0/
Queue: Nagios-Plugin

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.37



Subject: deprecated defined(%hash) in test
Date: Fri, 10 Jan 2014 16:44:31 +0000
To: bug-Nagios-Plugin [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
On current perl: t/Nagios-Plugin-Functions-01.t .... 1/113 defined(%hash) is deprecated at t/Nagios-Plugin-Functions-01.t line 22. (Maybe you should just omit the defined()?) t/Nagios-Plugin-Functions-01.t .... ok The line in question is trying to detect whether the hash has been imported. I think a sensible way to test this is to check that one of the hash elements exists. Attached patch fixes. -zefram

Message body is not shown because sender requested not to inline it.

thanks, this will be fixed in the next release of Monitoring::Plugins.
On 2014-01-19 18:29:35, NIERLEIN wrote: Show quoted text
> thanks, this will be fixed in the next release of Monitoring::Plugins.
With perl 5.21.x, this is not anymore a warning but an error. See http://matrix.cpantesters.org/?dist=Nagios-Plugin for a fail/pass overview.
This is fixed with the latest release. Since this module is deprecated now and the successor fixed that already.