Bug#738562: Some strange warnings with perl 5.18

Klaus Ethgen Klaus at Ethgen.de
Mon Feb 10 16:35:10 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Package: libzabbix-api-perl
Version: 0.009-1
Severity: normal

When I use Zabbix::API I get the following warnings every time I use the
script:
   given is experimental at /usr/share/perl5/Zabbix/API.pm line 159.
   when is experimental at /usr/share/perl5/Zabbix/API.pm line 161.
   when is experimental at /usr/share/perl5/Zabbix/API.pm line 167.

This is not helpful at all as the real experimental think is smartmatch
that triggers the issue (See also [0]).

The fix is trivial, just put the following line after the »use warnings«
in the module:
   no if $] >= 5.018, warnings => "experimental::smartmatch";

Regards
   Klaus Ethgen

[0] http://www.perlmonks.org/?node_id=1035295

- -- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (600, 'oldstable'), (110, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11.6 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set to de_DE)
Shell: /bin/sh linked to /bin/dash

- -- 
Klaus Ethgen                              http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16   Klaus Ethgen <Klaus at Ethgen.de>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQGcBAEBCgAGBQJS+P+7AAoJEKZ8CrGAGfasFSAL/0xlKIOZyJ7+yH/Mcy57iZg9
tOjfQ+tn+3Ta+xtVfn1zPZyi6F2pmTSqk03WUbcQOJqszQmpUHOAXJxmXkMfWseO
ybGDzkGC5tnQtNh7wtZYqiNeARL46yr0N4VHalzZWxZz6Llp8ogbKvUYoNkTo1Vi
l6ZLuQaCHYgfcFidrsdmeAA4k6utt2p/uDDxZaRJfTpnWHRoPyp3eCBke5AhyVms
SR2LCmo+qKvvJl+9j/IGXfP5dW+f+xqwTzlblSBOSwinitAfiktK3+aDBk7Y2VHa
3UQPHRaBDLgqpC3Ph3/hVR7au41+0ebZDwn5GNGcwFd8BIcevMJAo0yWE2ahwloZ
4iBCUM9a9BndoxDzBqUuIrZ2bO8sDjWSgGIZyoo6EoBteclw6qVjJ0snD8uogE3P
XAHsWQkdRP64M99LluGVJvfm+2+Y2bkZq/myZ1+DbRIApce3UreY/PFBDHDL3yoh
rh8BwyySxAHhHMeZ8ZswvWGbW2HdJVBjuxOM1lF6wA==
=bhC1
-----END PGP SIGNATURE-----



More information about the pkg-perl-maintainers mailing list