in reply to Re^3: self containing folder of modules
in thread self containing folder of modules

got the local:: lib module installed . i created a dir called mylib in home/ravi

now i need to add this line to .bashrc
eval $(perl -I$HOME/mylib/lib/perl5 -Mlocal::lib)
however the installation of modules is happening in /home/ravi/perl5

Replies are listed 'Best First'.
Re^5: self containing folder of modules
by Anonymous Monk on Sep 20, 2011 at 10:09 UTC

    however the installation of modules is happening in /home/ravi/perl5

    Yes, and?

    Did you read the first 10 lines of local::lib documentation?

    use local::lib; # sets up a local lib at ~/perl5 use local::lib '~/foo'; # same, but ~/foo