Hi,
I reply to this at my own peril, I realize, but I thought I'd mention 'Another Way To Do It'.
On a per script basis you can alter the @INC with:
BEGIN{unshift @INC, "/path/to/stuff"}
For the vast majority of things you do it is easier and better to follow the suggestions of the other monks here.
Also for installing modules in odd places I usually do a get Module::Whatever from within the CPAN shell, but then exit and go to ~/.cpan/build/Module-Whatever-0.01a and manually from there do a perl Makefile.pm Once that process is complete you can edit the Makefile that has been generated and change PREFIX= to read the path where you want it installed. From there it's usually just make, make test and make install.
There are also configuration settings within the CPAN shell that may help you alter install locations and the like - o conf will show you the options.
Again, don't do it this way - I merely present a different approach. This is something I find convienent to play with modules I want to have around one day and gone the next, particularly when I'm working on a module in-house.
Good luck,
{NULE}
--
http://www.nule.org |