SPUG: add to default @INC

Douglas kirkland douglas at slugstone.net
Fri Jul 18 15:34:16 CDT 2003


I am wondering how to add a couple more pathes to the default @INC.  This is 
not adding to @INC with your script.  For example when I run the following 
command I would like to see the directory /foo in the list.

$ perl -e 'print $_ ."\n" foreach @INC'
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0


Thanks,

Douglas

PS I have added myself to the wiki.




More information about the spug-list mailing list