Author: X.Robin (28 Oct 10 5:03am)
Carp has been in base perl for years (I checked perl 5.3 and it was already there). No need for a recent perl. As soon as you have the "perl-base" package in ubuntu (and I can't imagine any Ubuntu running without that) you have Carp ok.
If you're not convinced, type:
perl -MCarp -e 'print "ok\n"'
If it's not there you'll get an error (Can't locate Carp.pm in @INC … blah blah), but undoubtedly you'll get an "ok" line ! (If you get an error, ask on an Ubuntu forum because you've something very, very, very wrong with your system).
You can build perl if you want. Just make sure to install it in /opt (with --prefix=/opt/perl) or anywhere else as long as it doesn't override your system's perl.