SPUG: add to default @INC
Brian Wisti
brian at coolnamehere.com
Fri Jul 18 16:05:02 CDT 2003
There's a few tricks.
$ perl -I/path/to/added/directory
$ export PERL5LIB="/path/to/added/directory:$PERL5LIB"
You can also use the 'use lib' pragma, but that's a runtime
modification, so it doesn't sound like what you're looking for. Of all
of the options, setting the PERL5LIB environment variable seems like the
closest to what you are asking for. Of course, this _is_ Perl, so there
are probably other tricks as well :-)
- Brian Wisti
http://coolnamehere.com/
Douglas kirkland wrote:
>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.
>
>_____________________________________________________________
>Seattle Perl Users Group Mailing List
>POST TO: spug-list at mail.pm.org Wiki: spugwiki.perlocity.org
>ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list
>MEETINGS: 3rd Tuesdays, U-District, Seattle WA
>WEB PAGE: www.seattleperl.org
>
>
>
>
>
>
More information about the spug-list
mailing list