Skip to content

Commit 87e54f0

Browse files
committed
Adjust perlvar doc for @inc
RT #134108 dot is not in @inc anymore since 5.26
1 parent 0bc0f73 commit 87e54f0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pod/perlvar.pod

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,13 @@ The array C<@INC> contains the list of places that the C<do EXPR>,
494494
C<require>, or C<use> constructs look for their library files. It
495495
initially consists of the arguments to any B<-I> command-line
496496
switches, followed by the default Perl library, probably
497-
F</usr/local/lib/perl>, followed by ".", to represent the current
498-
directory. ("." will not be appended if taint checks are enabled,
499-
either by C<-T> or by C<-t>, or if configured not to do so by the
500-
C<-Ddefault_inc_excludes_dot> compile time option.) If you need to
501-
modify this at runtime, you should use the C<use lib> pragma to get
502-
the machine-dependent library properly loaded also:
497+
F</usr/local/lib/perl>.
498+
Prior to Perl 5.26, C<.> -which represents the current directory, was included
499+
in C<@INC>; it has been removed. This change in behavior is documented
500+
in L<C<PERL_USE_UNSAFE_INC>|perlrun/PERL_USE_UNSAFE_INC> and it is
501+
not recommended that C<.> be re-added to C<@INC>.
502+
If you need to modify C<@INC> at runtime, you should use the C<use lib> pragma
503+
to get the machine-dependent library properly loaded as well:
503504

504505
use lib '/mypath/libdir/';
505506
use SomeMod;

0 commit comments

Comments
 (0)