Mixing the OS-installed (vendor installed) modules and the fresh distributed modules could cause problems in any languages environment.

Therefore myself using the anyenv for all my needs. The installation is straightforward:

$ git clone https://github.com/riywo/anyenv ~/.anyenv $ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.your_profile $ echo 'eval "$(anyenv init -)"' >> ~/.your_profile $ exec $SHELL -l

After you got installed the anyenv, you could install many different language environments, like plenv for the perl.

$ anyenv install plenv

and now you could install (compile) any perl version what exists in the repository

$ plenv install -l #to show installable perl versions $ plenv install 5.24.0 #install the 5.24.0 $ plenv global 5.24.0 #set the 5.24.0 as default perl for you

Read more at plenv github page

Also, you probably will want to change all #!shebang lines, from

#!/usr/bin/perl to #!/usr/bin/env perl

In reply to Re^5: trouble with namespace::clean by jomo
in thread trouble with namespace::clean by nikmit

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.