Upgrade Perl

Certain features (like spam filtering) require perl 5.8.1 or higher to function fully. If perl -v reflects anything smaller than 5.8.1, it is recommended that you upgrade to the latest version. You can do this via:

toaster_setup.pl -s perl

WARNING: Disable any cron jobs that run perl scripts *before* upgrading perl. When you upgrade perl, the installed modules get left behind and need to be re-installed. After upgrading perl and all the installed modules, test the cron jobs by running them on the command line before enabling them.

FreeBSD specific
You can upgrade perl manually as follows:

cd /usr/ports/lang/perl5.8 make deinstall make install clean rehash; use.perl port

You need CPAN working for installing perl modules so make sure it is configured. If the following command does not give you a prompt, then you will be prompted to configure.

perl -MCPAN -e shell exit

After upgrading to a new version of Perl, your installed modules will not work with the new version. You will need to re-install them. The old way is using portupgrade:

portupgrade -f `pkg_info | grep p5- | cut -d" " -f1` portupgrade -f `pkg_info | grep rrdtool- | cut -d" " -f1`

Newer version of perl install a script that will move all your installed perl modules into perl's new locations.

perl-after-upgrade -f