Also keep in mind that 16.04 ships with perl 5.22, where this warning is
fatal[1], rendering the package completely broken there.

If upgrading the package is undesirable due to Ubuntu's policies, I've
attached a patch with the fix as described by OP.

aowi@otto ~/src/libmail-sender-perl $ perl -MMail::Sender -e1
defined(@array) is deprecated at /usr/share/perl5/Mail/Sender.pm line 318.
        (Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/share/perl5/Mail/Sender.pm line 2693.
        (Maybe you should just omit the defined()?)
aowi@otto ~/src/libmail-sender-perl $ sudo dpkg -i 
libmail-sender-perl_0.8.16-2nz1_all.deb
[sudo] password for aowi: 
(Reading database ... 310370 files and directories currently installed.)
Preparing to unpack libmail-sender-perl_0.8.16-2nz1_all.deb ...
Unpacking libmail-sender-perl (0.8.16-2nz1) over (0.8.16-2) ...
Setting up libmail-sender-perl (0.8.16-2nz1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
aowi@otto ~/src/libmail-sender-perl $ perl -MMail::Sender -e1
aowi@otto ~/src/libmail-sender-perl $ 

[1]
http://search.cpan.org/dist/perl-5.22.0/pod/perldelta.pod#defined%28@array%29_and_defined%28%hash%29_are_now_fatal_errors

** Patch added: "fix-defined-array-warnings.patch"
   
https://bugs.launchpad.net/ubuntu/+source/libmail-sender-perl/+bug/1549711/+attachment/4639719/+files/fix-defined-array-warnings.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1549711

Title:
  Old version gives defined(@array) is deprecated warnings

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libmail-sender-perl/+bug/1549711/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to