diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 1f9c08ce3651..5cc8fabe1807 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, C, or C 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, 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 pragma to get -the machine-dependent library properly loaded also: +F. +Since Perl 5.26 '.' which represents the current directory +is not appended anymore to C<@INC>. This is not recommended to change +this behavior and you can read more about it from +L|perlrun/PERL_USE_UNSAFE_INC> +If you need to modify C<@INC> at runtime, you should use +the C pragma to get the machine-dependent library properly loaded also: use lib '/mypath/libdir/'; use SomeMod;