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.