How do I update/install Perl?
Perl is a high-level programming language that comes installed by default in Ubuntu.
When Ubuntu releases a new version of its OS every 6 months, that release is largely frozen in time. While the software that is part of that release will get bug fixes and security patches, new major releases of software and the new features that come with them will not be available.
Ubuntu 11.10 Perl version
The Perl 5.14.2
precise (perl): Larry Wall's Practical Extraction and Report Language 5.14.2-6ubuntu2: amd64 i386
Ubuntu 12.04 LTS
The Ubuntu 12.04 will be released: https://wiki.ubuntu.com/PrecisePangolin/ReleaseSchedule
April 26th Final Release
Ubuntu 12.04 Forum: http://ubuntuforums.org/forumdisplay.php?f=412
sudo perl -MCPAN -e 'upgrade'
is an option that might help.
Did not succeed because I had an error, but I seems to have updated some packages which solved my problem.
The install asked for my apach.e install directory and then crashed because I supplied an additional "/" in the path name. The upgrade still did something though, as my problem went away. I will upgrade to a newer Ubuntu soon
You should use perlbrew; this is the actual way to do it. Maybe Ubuntu people won't like this way because it is not package based, but if you need to involve yourself into Perl, this is a prerequisite. The process is painless, and you don't have to be afraid by compiling Perl; it's really painless.
None of those require root privileges; you have to enjoy this.
Don't forget that using the Ubuntu outdated Perl packages is almost crazy, because they are really old versions, and you just don't need to hurt yourself by using this old stuff.
See also this answer.