[thelist] Question about perl mod's.

Seb Barre sebastien at oven.com
Fri Jan 12 14:44:31 CST 2001


At 12:46 PM 1/12/2001 -0600, you wrote:
>Hola -
>
>I've got a system with a couple versions of perl on it(dont ask why :). I 
>have a script that is using the GD module, but when it tries to run, the 
>script spits out an error about @INC not being able to find the GD.pm 
>module in /lib/foo/perl, /foo/lib/perl etc..
>
>I do realize thats the case, and the GD.pm is just ina different 
>directory, /perl/foo/lib
>
>To cut to the chase, what/who/where do I modify so that the path that @INC 
>is looking in can include my custom path?
>
>Hope thats enough info, thanks :)

You can also do:

push @INC, "/your/lib/path";

at the beginning of your program to include it only for the program 
duration.  Basically it's the same as the lib thing, but hey it's 
Perl.  There is always more than one way. =)


--- -- -
Seb Barre - seb at oven.com
OVEN Digital Toronto
Work  : 416-595-9750 x 222
Mobile: 416-254-5078
http://www.oven.com/





More information about the thelist mailing list