[oclug] really basic perl help

Dave O'Neill dmo at acm.org
Tue Jan 7 11:04:37 EST 2003


On Tue, Jan 07, 2003 at 10:17:13AM -0500, Bart Trojanowski wrote:
> It may be possible to use modules out of the system directory and just
> make perl include the modules out of your home dir.
> 
> [ actually I am pretty sure that this is possible.  you have to do some
> magic on the @INC array -- which is equivalent to adding -I<path> on the
> gcc command line, but is interpreted at runtime ]

Yeah, you can add it to @INC, but if you have a reasonably modern version of
Perl, the proper thing to do is:
	use lib '/some/path/to/modules/dir/';

-dave0
-- 
   ('>
   //\                                                        dmo at acm dot org
   v_/_                Vs lbh ebg13 guvf grkg, lbh ner va ivbyngvba bs gur QZPN.



More information about the OCLUG mailing list