Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust perlvar doc for @INC #20

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions pod/perlvar.pod
Original file line number Diff line number Diff line change
Expand Up @@ -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>.
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<C<PERL_USE_UNSAFE_INC>|perlrun/PERL_USE_UNSAFE_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 also:

use lib '/mypath/libdir/';
use SomeMod;
Expand Down