From: Andreas J. Koenig Date: Mon, 19 Mar 2007 23:35:10 +0000 (+0100) Subject: Re: Composing @INC from PERL5LIB X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=696814337d4eac8d0663d5307d6e01964d1b2897;p=p5sagit%2Fp5-mst-13.2.git Re: Composing @INC from PERL5LIB Message-ID: <87ircwkgkh.fsf@k75.linux.bogus> p4raw-id: //depot/perl@30643 --- diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 592a7b9..3ffa100 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -1023,10 +1023,16 @@ X A list of directories in which to look for Perl library files before looking in the standard library and the current directory. Any architecture-specific directories under the specified -locations are automatically included if they exist. If PERL5LIB is not -defined, PERLLIB is used. Directories are separated (like in PATH) by -a colon on unixish platforms and by a semicolon on Windows (the proper -path separator being given by the command C). +locations are automatically included if they exist. The checking if +the specified directories and their architecture-specific +subdirectories exist is only done once at interpreter startup time and +not repeated later. So PERL5LIB has no effect for directories that are +created at runtime. + +If PERL5LIB is not defined, PERLLIB is used. Directories are separated +(like in PATH) by a colon on unixish platforms and by a semicolon on +Windows (the proper path separator being given by the command C). When running taint checks (either because the program was running setuid or setgid, or the B<-T> switch was used), neither variable is used.