root@boiao:~# perlbrew list * /usr/local/bin/perl (5.10.1) /usr/bin/perl (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:

* perl-5.12.4 /usr/local/bin/perl (5.10.1) /usr/bin/perl (5.12.4)

When you do the installation, you're probably going to want a little more than

perlbrew install perl-5.12.4

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:

perlbrew install -v perl-5.12.4 -Dusethreads -Duselargefiles --as perl +-5.12.4_custom

You can now switch to the Perl you've installed. (More on this below.)

If you didn't choose a custom name, your list will now look like what I showed above. If you did use --as, you'll now see

* perl-5.12.4_custom /usr/local/bin/perl (5.10.1) /usr/bin/perl (5.12.4)

I noticed you were trying many variations for the switch statement argument. Given the above, the correct incantations would be:

perlbrew switch perl-5.12.4 # --as not used perlbrew switch perl-5.12.4_custom # --as used

You may find this thread useful after installation: perlbrew: moving to a new perl with all current modules

-- Ken


In reply to Re^3: duplicate perl environments by kcott
in thread duplicate perl environments by Bejjan

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.