redhotpenguin has asked for the wisdom of the Perl Monks concerning the following question:

Dear LazyMonks,

I am tired of working on a shared dev environment where I have to set all sorts of paths and shell variables to install perl modules in my home directory. There must be a CPAN module that I can have the box administrator install, and then it uses my own /home directories to install perl modules locally, and takes care of all ENV and shell voodoo.

Seems like this might resolve a lot of shared hosting issues also. Is it out there?

  • Comment on CPAN module for user level CPAN module installs?

Replies are listed 'Best First'.
Re: CPAN module for user level CPAN module installs?
by Your Mother (Archbishop) on Jun 09, 2009 at 22:48 UTC
      Nice indeed. Ideally I would want something that I don't have to do any work, it just does what I mean. But I guess for that you would have to overload strict or warnings, and set the local lib there (since you couldn't guarantee any other modules would be loaded.
      There are some possible downsides, but it would be oh so nice to have.

        It mostly does what you want. You have to setup your shell vars and stuff but there are shortcuts in the doc to do that. You can also bootstrap it without needing an admin to put it in. I've done it on a couple different hosts for several different accounts and been really pleased/surprised. In part the best thing about it is just that it normalized the procedure. I was doing it ad hoc on every account, which sounds like the same hassle you were going through, and now even if it's more work than sudo cpan Module List at least it's sane and predictable everywhere I use it.