EDIT: After 2h of investigations, i realised that i didn't have the latest version of perlbrew (0.60 instead of 0.61), and fixed it by simply doing:

$ perlbrew self-upgrade
SOLVED!
~ ~ ~ ~ ~

Hello, i've installed Perlbrew on a new computer last week and i have a problem: perlbrew list doesn't list the versions of perl that i have installed. On the other hand, perlbrew lib list works and displays: perl-5.16.3@devel Which is what i expect. And $PERLBREW_PERL is correct and equal to "perl-5.16.3";

I also have this error message when /home/user/perl5/perlbrew/etc/bashrc runs: bash: export: `/home/user/.perlbrew/libs/perl-5.16.3@devel";': not a valid identifier which comes up while the __perlbrew_activate subroutine is called.

Question 1: Any idea what is going on?

Question 2: I've tried to add print statements in the ~/perl5/perlbrew/bin/perlbrew executable, unsuccessully: i get strange bugs. Is that because this file is fatpacked, and it's not possible to modify the content of fatpacked files?

* Here is what i did last week to install it all:

I installed perlbrew with one of these two, i don't remember which one: wget --no-check-certificate -O - http://install.perlbrew.pl | bash or maybe curl -kL http://install.perlbrew.pl | bash

And then i did:

perlbrew install-ack perlbrew install-cpanm perlbrew install-patchperl perlbrew init
And i added the following line in my .bashrc:
source "/home/user/perl5/perlbrew/etc/bashrc"
I have verified: the /home/user/perl5/perlbrew/etc/bashrc script runs.

Then i did:

$ perlbrew install 5.16.3 $ perlbrew switch perl-5.16.3 $ perlbrew lib create devel $ perlbrew switch perl-5.16.3@devel $ perlbrew lib list # prints perl-5.16.3@devel $ perlbrew list # prints perl perl-5.16.3, and perl-5.16.3@devel $ cpanm Archive::Any # worked without a problem

And this week i come back with the problem i presented.

Thank you for any help!


In reply to [Solved]Problem with new Perlbrew installation by mascip

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.