Wednesday, January 06, 2010

Installing Perl Modules as Non-Root : If You're Not in bash

What if you're in csh? (to Mr. X who wrote : http://linuxgazette.net/139/okopnik.html )


setenv MANPATH ${MANPATH}:~/perl_modules/man

if ( $?PERL5LIB  ) then
        # PERL5LIB not previously defined, so set it..
        setenv PERL5LIB ${PERL5LIB}:~/perl_modules
else 
        setenv PERL5LIB ~/perl_modules
endif

verify with 

perl -wle'print for grep /myperl/, @INC'

That's a bit of guru-level perl right there. Deadly one! (not mine:)

No comments: