In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/c319391ae00610ef5c07296498178b0777a48912?hp=e739c653b69150d3bbe873918ad5c265e6a421a7>
- Log ----------------------------------------------------------------- commit c319391ae00610ef5c07296498178b0777a48912 Author: Aaron Crane <a...@cpan.org> Date: Tue Feb 19 14:17:59 2013 +0000 perlfunc: clarify that "do $file" isn't really like "eval `cat $file`" Closes RT#116713. ----------------------------------------------------------------------- Summary of changes: pod/perlfunc.pod | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 0541bfd..8f71880 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1558,11 +1558,12 @@ file as a Perl script. do 'stat.pl'; -is just like +is largely like eval `cat stat.pl`; -except that it's more efficient and concise, keeps track of the current +except that it's more concise, runs no external processes, keeps track of +the current filename for error messages, searches the C<@INC> directories, and updates C<%INC> if the file is found. See L<perlvar/@INC> and L<perlvar/%INC> for these variables. It also differs in that code evaluated with C<do FILENAME> -- Perl5 Master Repository