In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/5fc389563644287b3e5f448616ce62dd0ce4e7a6?hp=1b92e6949b737e92f61827f9c92afce9218e30ba>
- Log ----------------------------------------------------------------- commit 5fc389563644287b3e5f448616ce62dd0ce4e7a6 Author: David Mitchell <[email protected]> Date: Mon Apr 3 08:25:02 2017 +0100 perlfunc: 'do' synopsis: clarify when @INC used ----------------------------------------------------------------------- Summary of changes: pod/perlfunc.pod | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 357cd213c9..c8140d58b7 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1805,11 +1805,15 @@ See L<perlsyn> for alternative strategies. X<do> Uses the value of EXPR as a filename and executes the contents of the -file as a Perl script. +file as a Perl script: - do './stat.pl'; + do './stat.pl'; # file located relative to the current dir + do '/foo/stat.pl'; # file located at the specified absolute path -is largely like + do 'stat.pl'; # file searched for within @INC + do 'foo/stat.pl'; # file searched for within @INC + +C<do './stat.pl'> is largely like eval `cat stat.pl`; -- Perl5 Master Repository
