I don't understand the question :)

I think the answer is either-or, pick-one :)

It is based on reading

http://search.cpan.org/grep?cpanid=GUGOD&release=App-perlbrew-0.30&string=PERLBREW_ROOT&i=1&n=1&C=0
our $PERLBREW_ROOT = $ENV{PERLBREW_ROOT} || "$ENV{HOME}/perl5/perlbrew
139: setenv PERLBREW_ROOT "$HOME/perl5/perlbrew" 149: setenv PERLBREW_PATH "$PERLBREW_ROOT/bin"

perlbrew

If latter on you need to change $PERLBREW_ROOT, you (and all other users who share the same $PERLBREW_ROOT will have to run this again to make it affective.

PERLBREW_ROOT

By default, perlbrew builds and installs perls into $ENV{HOME}/perl5/perlbrew directory. To use a different directory, set this environment variable in your bashrc to the directory before running perlbrew.

App::perlbrew

By default, perlbrew looks for the intialization file that exports PERLBREW_ROOT in ~/.perlbrew/init. In some cases (for instance, if your home directory is shared across multiple machines), you may wish to have several different perlbrew setting per-machine. If so, you can use the PERLBREW_HOME environment variable to tell perlbrew where to look for the initialization file
# on machine a $ PERLBREW_HOME=~/.perlbrew-a PERLBREW_ROOT=~/perl5/perlbrew-a ./perl +brew install # on machine b $ PERLBREW_HOME=~/.perlbrew-b PERLBREW_ROOT=~/perl5/perlbrew-b ./perl +brew install
If you specify PERLBREW_HOME, you will also need to specify both PERLBREW_HOME and PERLBREW_ROOT when you first install perlbrew. After that, you'll need to make sure PERLBREW_HOME is exported when you log in, before you source $PERLBREW_ROOT/etc/bashrc (or cshrc). Example .bashrc:

In reply to Re: Setting up perlbrew for Linux and Solaris by Anonymous Monk
in thread Setting up perlbrew for Linux and Solaris by bergbrains

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.