SPUG: Change perl's libpth on the fly?

Aryeh "Cody" Sherr asherr at cs.unm.edu
Tue Jan 18 16:07:25 CST 2000


Well, I think you need to rebuild perl, but a workaround is the 'use lib'
pragma:

use lib '/usr/lib/perl5/site_perl';

This also works for any situation that you want to use modules in
nonstandard places. It's still probably better to keep your libs in
someplace consolidated, or at least planned.

hope this helps.
A. "Cody" Sherr - asherr at cs.unm.edu
http://www.cs.unm.edu/~asherr

---------- WARNING! THIS EMAIL IS A MUNITION ------------ 
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)


On Tue, 18 Jan 2000, Ryan Erwin wrote:

>My OpenBSD distro came with perl's libpth set to '/usr/lib'
>instead of '/usr/lib /usr/local/lib' or something else that
>would be useful ;)
>
>How can I change perl's libpth *without* rebuilding perl?
>Is there some variable that I can set that will take care of
>this?  Maybe some cool switch that I haven't seen.
>
>You can check the lib path on your system with 'perl -V'
>
>I can't run GD or and of those cool Term:: modules until
>I get this libpth fixed so if anyone knows, please tell.
>
>Thanks-
>
>Ryan Erwin [ryan at erwin.org]
>
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>    POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
> Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
> SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
>        Email to majordomo at pm.org: ACTION spug-list your_address
>
>
>


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
        Email to majordomo at pm.org: ACTION spug-list your_address





More information about the spug-list mailing list