File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -494,12 +494,13 @@ The array C<@INC> contains the list of places that the C<do EXPR>,
494
494
C<require>, or C<use> constructs look for their library files. It
495
495
initially consists of the arguments to any B<-I> command-line
496
496
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:
503
504
504
505
use lib '/mypath/libdir/';
505
506
use SomeMod;
You can’t perform that action at this time.
0 commit comments