Hi, thanks for prompt reply.
I have tried this, and it doesnt help much.
root@boiao:~# perlbrew list
* /usr/local/bin/perl (5.10.1)
root@boiao:~# perlbrew switch /usr/bin/perl
/usr/bin/perl is not installed
root@boiao:~# perlbrew switch 5.12.4
5.12.4 is not installed
root@boiao:~# perlbrew switch perl-5.12.4
perl-5.12.4 is not installed
root@boiao:~# perlbrew switch perl_5.12.4
perl_5.12.4 is not installed
root@boiao:~# perlbrew switch /usr/bin/perl5.12.4
/usr/bin/perl5.12.4 is not installed
root@boiao:~# perlbrew switch perl5.12.4
perl5.12.4 is not installed
Followed the instructions to init perlbrew and add the path to ~/.bashrc and it lists the two installations and started a new shell, but I'm still not able to switch to 5.12.4
Those aren't Perls that perlbrew has control over. I found this confusing the first time I used it. Once you install a Perl with perlbrew and switch to it, you see'll the list change. Something like this:
perlbrew (CPAN) documents the general and install-specific options. Also take a look at the two config_args='...' in your perl -V outputs: they differ widely. The perl 5.12.4 INSTALL file may be useful in deciding which -D options to use. You can give each installation its own name with the --as option. So, your actual command might look a bit more like:
Also, is this a machine that many people use or is it your personal machine? By default, perlbrew installs itself and perl in your home directory, so you don't need to ever use sudo when adding new modules; however, for our shared workhorse, I follow the docs at http://perlbrew.pl to install into /perlbrew so that everyone is able to use the modules I install.