From: Rafael Garcia-Suarez Date: Thu, 3 Mar 2005 15:43:43 +0000 (+0000) Subject: do "filename" is not really used with perl subroutine librairies X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ea63ef19ca3f585d76378df52ef140c169642026;p=p5sagit%2Fp5-mst-13.2.git do "filename" is not really used with perl subroutine librairies anymore. p4raw-id: //depot/perl@24000 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 9458d1c..dc23b21 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1206,8 +1206,7 @@ A deprecated form of subroutine call. See L. =item do EXPR Uses the value of EXPR as a filename and executes the contents of the -file as a Perl script. Its primary use is to include subroutines -from a Perl subroutine library. +file as a Perl script. do 'stat.pl'; @@ -1216,7 +1215,7 @@ is just like eval `cat stat.pl`; except that it's more efficient and concise, keeps track of the current -filename for error messages, searches the @INC libraries, and updates +filename for error messages, searches the @INC directories, and updates C<%INC> if the file is found. See L for these variables. It also differs in that code evaluated with C cannot see lexicals in the enclosing scope; C does. It's the