[Israel.pm] Removing PERLLIB additions to @INC
David Baird
david.baird at homemail.com
Wed Jan 14 01:05:07 PST 2004
Written by: Me
> A simpler question for me is, why is there no option to the
> perl runtime
> to ignore the PERLLIB variable? Since my particular script is executed
> by an eternal program using a specialized Perl, I've also looked into
> undefining PERLLIB before it calls my script.
Oh silly me, I found the solution. I carefully read perlrun to
understand what I needed. Gabor already suggested it.
Written by: Gabor Szabo
> Maybe adding -T to all your scripts will help :-)
But, I don't know why it funny, which is why I ignored the idea at
first. It is the actual solution.
% setenv PERL5LIB a:b:c
% perl -e 'print join qq{\n}, @INC'
a
b
c
/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
.
% perl -Te 'print join qq{\n}, @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
-David
More information about the Perl
mailing list