|
|
PGTS Humble BlogThread: Open Source Software |
|
![]() |
Gerry Patterson. The world's most humble blogger |
Edited and endorsed by PGTS, Home of the world's most humble blogger | |
| |
Mail::Sender incompatibilities |
|
Chronogical Blog Entries: |
|
| |
Date: Mon, 4 Jul 2016 09:04:24 +1000For some time now the standard Mail::Sender package that ships with Ubuntu has had "issues". |
This package may be in decline. The same issues seems to exist on other platforms (apart from Ubuntu). If you are using Ubuntu LTS than it probably would have surfaced during upgrade to 14.04.
However the package still works. You can either replace it with cpan or fetch the latest package.
The error manifests as one of the following:
defined(@array) is deprecated at /usr/share/perl5/Mail/Sender.pm line ... (Maybe you should just omit the defined()?) ... or ... Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/share/perl5/Mail/Sender.pm line ...Or a similar message ... The line number varies according to the version you have ...
If you are using the APT package, remove it ...
sudo apt-get purge libmail-sender-perl
Re-install with cpan. Just use "sudo -i" and then enter "cpan". If it is the first time you have run cpan you will have to configure cpan
Alternatively you could just build it yourself:
- Make sure "make" is installed.
- Download the latest package (Mail-Sender-0.8.23.tar.gz) from CPAN.
- Unpack and change to the folder that was unpacked
- perl Makefile.PL
- make
- make install
You can search for the Sender.pm package with this line:
for x in $(perl -e 'foreach (@INC){print "$_\n"}');do if [[ -f "$x/Mail/Sender.pm" ]]; then ls -l $x/Mail/Sender.pm; fi; done