Unless you have disk issues, you can safely let the two co-exist (at least on Linux and Solaris - I don't have access to other platforms). You should still have an executable named perl5.10.1 in the install directory's bin subdir.

Under the lib subdir, you will have subdirs corresponding to the version (5.10.?, 5.12.1) that will contain the modules that are appropriate to the version, so you should still be able to run.

For instance, since my development perl is under /usr/local/perl, and I have 5.8.9, 5.10.1 and 5.12.1 installed, I have /usr/local/perl/bin/perl, which is hard linked to /usr/local/bin/perl5.12.1. I also have perl5.8.9 and perl5.10.1 in the same directory.

Under /usr/local/perl/lib, there are 5.8.9, 5.10.1 and 5.12.1 subdirs (also under /usr/local/perl/lib/site_perl). They will all operate correctly.

If you simply *must* remove the 5.12.1 capability, you *may* be able to use apt to downgrade your perl install.

If disk space is not an issue (and you must use 5.10.1), execute the following:

cd $(dirname $(which perl))
This will change to the directory where the perl binary is located.
Now, find the perl 5.10.1 binary and compare it to the perl binary (I am showing mine, which is 5.12.1:
ls -i perl && ls -i perl5.10.1 && ls -i perl5.12.1 1198045 perl 1156173 perl5.10.1 1198045 perl5.12.1
The first column is the starting inode number for each file. Note that on mine, both perl and perl5.12.1 point at the same file, while perl5.10.1 is a different file. If this is the case on your machine, you can do the following:
sudo rm -f perl sudo ln perl5.10.1 perl
Now, any perl module you run that starts with #!/usr/bin/perl (or wherever your perl executable is located) will use v5.10.1, while you will still have 5.12.1 available.

Good luck.


In reply to Re: v5.12.1 installed via CPAN by proceng
in thread v5.12.1 installed via CPAN by razed

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.