How to upgrade Perl 5.8.x to 5.10.x on FreeBSD.

In the ports collection you can find /usr/ports/UPDATING. Here you can read how to upgrade Perl 5.8.x to the new release 5.10.x.

The description below is copied from the updating file.

Note: you might need to manually upgrade some ports after this. For example, I had to recompile APR, Apache and Subversion.

Portupgrade users:
0) Fix pkgdb.db (for safety):

1) Reinstall perl with new 5.10:

2) Reinstall everything that depends on Perl:

Portmaster users:

Note: If the “perl-” glob matches more than one port you will need to specify the name of the perl directory in /var/db/pkg explicitly.