summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-03-31 09:13:33 +0100
committerDavid Mitchell <davem@iabyn.com>2017-03-31 09:13:33 +0100
commit1c99110e81e1b5fb8dad0a368bf6aa2f3439cc22 (patch)
tree9f3d83c083d205cb3146e9dfac97d1468a08eeee /pod/perlfunc.pod
parent2e3b2a1fba7611d1cd6060a5f07f6a0f91a06b3a (diff)
downloadperl-1c99110e81e1b5fb8dad0a368bf6aa2f3439cc22.tar.gz
tweak 'do "%s" failed' message
The warning do "%s" failed, '.' is no longer in @INC was added in the previous devel release; this commit enhances it to say do "%s" failed, '.' is no longer in @INC; did you mean do "./%s" and updates the relevant docs. See http://nntp.perl.org/group/perl.perl5.porters/243788.
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod7
1 files changed, 5 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index ae97bce829..357cd213c9 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -1829,8 +1829,11 @@ L<C<%INC>|perlvar/%INC> if the file is found. See L<perlvar/@INC>
and L<perlvar/%INC> for these variables. In particular, note that
whilst historically L<C<@INC>|perlvar/@INC> contained '.' (the
current directory) making these two cases equivalent, that is no
-longer necessarily the case, as there is now a compile-time option
-to disable this behaviour.
+longer necessarily the case, as '.' is not included in C<@INC> by default
+in perl versions 5.26.0 onwards. Instead, perl will now warn:
+
+ do "stat.pl" failed, '.' is no longer in @INC;
+ did you mean do "./stat.pl"?
If L<C<do>|/do EXPR> can read the file but cannot compile it, it
returns L<C<undef>|/undef EXPR> and sets an error message in