#117 dns.monitor: defined(@array) is deprecated

open
nobody
None
5
2014-08-19
2013-12-31
Dario Minnucci
No

Hi Trockij,

I've got this bug via Debian BTS [0] and I post it here as usual.

Attached you will find the patch applied in Debian.

Regards,


When I use dns.monitor, I've got Perl problem when calling normally or
simple with "--help" argument :

/usr/lib/mon/mon.d/dns.monitor 127.0.0.1

defined(@array) is deprecated at /usr/lib/mon/mon.d/dnscustom.monitor
line 171.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/lib/mon/mon.d/dnscustom.monitor
line 176.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/lib/mon/mon.d/dnscustom.monitor
line 182.
(Maybe you should just omit the defined()?)

The defined function in recent perl is deprecated and genere a mon alerte.
See this great information at :
http://blogs.perl.org/users/rurban/2012/02/on-definedarray-and-definedhash.html


[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731737

1 Attachments

Discussion