PGTS PGTS Pty. Ltd.   ACN: 007 008 568

point Site Navigation

point Other Blog Threads

  Valid HTML 4.01 Transitional

   Stop The Internet Filter!

   No Clean Feed

   The Internet Filter Is An Ex-parrot!

PGTS Humble Blog

Thread: Open Source Software

Author Image Gerry Patterson. The world's most humble blogger
Taking dinosaurs off this island is the worst idea in the long sad history of bad ideas -- Dr. Ian Malcolm [Jurassic Park: Lost World]

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/ 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/ 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 package with this line:

    for x in $(perl -e 'foreach (@INC){print "$_\n"}');do if [[ -f "$x/Mail/" ]]; then ls -l $x/Mail/; fi; done

Other Blog Posts In This Thread:

Copyright     2016, Gerry Patterson. All Rights Reserved.