Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: perlbrew uses ~/.cpanm/ - why's that then?

by Dallaylaen (Chaplain)
on Nov 23, 2016 at 20:34 UTC ( #1176451=note: print w/replies, xml ) Need Help??

in reply to perlbrew uses ~/.cpanm/ - why's that then?

A reasonable question. However, I'm not sure how hard it would be to patch cpanm so that it uses a custom working directory. And it would require thorough testing on many systems, while running cpanm as root is probably not so common. Cpanm is for *not* having to run it as root after all!
  • Comment on Re: perlbrew uses ~/.cpanm/ - why's that then?

Replies are listed 'Best First'.
Re^2: perlbrew uses ~/.cpanm/ - why's that then?
by Anonymous Monk on Nov 23, 2016 at 21:36 UTC
    cpanm is for installing modules, where/how.... is all configurable, just like cpan and cpanp ....
Re^2: perlbrew uses ~/.cpanm/ - why's that then?
by Caesura (Sexton) on Nov 24, 2016 at 10:44 UTC

    Thanks for your replies and yes, I could make it open to root and me, but I think I'd want a different collection of modules for each version of Perl in cpan (some new modules won't work on older Perls), so how would I patch cpanm to be different for all the Perls available in perlbrew?

    A bit of a faff when I thought perlbrew had self-contained environments.

    I'll look into it more...!



      Honestly, I have no idea why perlbrew team decided to not patch cpanm in the way you describe. Maybe it was hard enough to patch it to work with perlbrew at all (mind you, the default cpanm doesn't).

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1176451]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2022-05-16 10:07 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (62 votes). Check out past polls.