% sh Configure -de
% make
% make test
% sudo make install
####
% which perl
/usr/local/bin/perl
% perl -v
This is perl, v5.10.0 built for i686-linux
Copyright 1987-2007, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the GNU General Public License, which may be found in the Perl 5 source
kit.
Complete documentation for Perl, including FAQ lists, should be found
on this system using "man perl" or "perldoc perl". If you have access to
the Internet, point your browser at http://www.perl.org/, the Perl Home
Page.
% perl -e 'use feature qw(:5.10); say q(Hello World!);'
Hello World!
####
% sudo perl -MCPAN -e 'shell'
Perl lib version (v5.8.8) doesn't match executable version (v5.10.0) at /usr/lib/perl/5.8/Config.pm line 46.
Compilation failed in require at /usr/local/share/perl/5.8.8/CPAN.pm line 14.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/CPAN.pm line 14.
Compilation failed in require.
BEGIN failed--compilation aborted.
% perldoc perl
Perl lib version (v5.8.8) doesn't match executable version (v5.10.0) at /usr/lib/perl/5.8/Config.pm line 46.
Compilation failed in require at /usr/share/perl/5.8/Pod/Perldoc.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl/5.8/Pod/Perldoc.pm line 7.
Compilation failed in require at /usr/local/bin/perldoc line 9.
BEGIN failed--compilation aborted at /usr/local/bin/perldoc line 9.