PGTS PGTS Pty. Ltd.   ACN: 007 008 568

point Site Navigation

point Other Blog Threads



  Valid HTML 4.01 Transitional

   Give Windows The Boot!
   And Say Goodbye To Viruses!

   Ubuntu

   If you own a netbook/laptop~
   Download Ubuntu Netbook!






PGTS Humble Blog

Thread: Open Source Software

Author Image 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 +1000

For 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:

  1. Make sure "make" is installed.
  2. Download the latest package (Mail-Sender-0.8.23.tar.gz) from CPAN.
  3. Unpack and change to the folder that was unpacked
  4. perl Makefile.PL
  5. make
  6. 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

Other Blog Posts In This Thread:

Copyright     2016, Gerry Patterson. All Rights Reserved.