summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas R <atoomic@cpan.org>2019-05-15 10:02:55 -0600
committerNicolas R <atoomic@cpan.org>2019-05-16 11:25:02 -0600
commit87e54f02df2275a05c923ec51e27d3e176499a4b (patch)
treef409a57418051603cb028d71a1edf13dfc1e7cca
parent0bc0f7314abbd796013eefd04638fd914aaf2cca (diff)
downloadperl-87e54f02df2275a05c923ec51e27d3e176499a4b.tar.gz
Adjust perlvar doc for @INC
RT #134108 dot is not in @INC anymore since 5.26
-rw-r--r--pod/perlvar.pod13
1 files changed, 7 insertions, 6 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod
index 1f9c08ce36..6c54f76bc3 100644
--- a/pod/perlvar.pod
+++ b/pod/perlvar.pod
@@ -494,12 +494,13 @@ The array C<@INC> contains the list of places that the C<do EXPR>,
C<require>, or C<use> constructs look for their library files. It
initially consists of the arguments to any B<-I> command-line
switches, followed by the default Perl library, probably
-F</usr/local/lib/perl>, followed by ".", to represent the current
-directory. ("." will not be appended if taint checks are enabled,
-either by C<-T> or by C<-t>, or if configured not to do so by the
-C<-Ddefault_inc_excludes_dot> compile time option.) If you need to
-modify this at runtime, you should use the C<use lib> pragma to get
-the machine-dependent library properly loaded also:
+F</usr/local/lib/perl>.
+Prior to Perl 5.26, C<.> -which represents the current directory, was included
+in C<@INC>; it has been removed. This change in behavior is documented
+in L<C<PERL_USE_UNSAFE_INC>|perlrun/PERL_USE_UNSAFE_INC> and it is
+not recommended that C<.> be re-added to C<@INC>.
+If you need to modify C<@INC> at runtime, you should use the C<use lib> pragma
+to get the machine-dependent library properly loaded as well:
use lib '/mypath/libdir/';
use SomeMod;