SPUG: Change perl's libpth on the fly?
Steve Laybourn
otter101 at hotmail.com
Tue Jan 18 16:13:21 CST 2000
G'day!
I had a problem like this once when I installed ActiveState on my
machine. Seems you can do something like:
push(@INC,"/usr/bin/perl/wossname");
at the beginning of the script to add paths to @INC, which has all the Perl
subdirectory markers for scripts to be evaluated by do, use, or require
constructs.
Hopefully this will solve your problem, or I anticipate there will be a
tar machine and several dozen goose-down pillows waiting for me at the
meeting tonight.
Be seeing you...
Steve Laybourn
Camel Herdsman, imandi.com
>From: Ryan Erwin <ryan at erwin.org>
>To: spug-list at pm.org
>Subject: SPUG: Change perl's libpth on the fly?
>Date: Tue, 18 Jan 2000 12:55:11 -0800 (PST)
>
>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
>
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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