M. J. T. Guy [Tue, 28 Jul 1998 12:44:36 +0000 (13:44 +0100)]
Message-Id: <E0z18BI-0003cH-00@taurus.cus.cam.ac.uk>
Subject: [PATCH] Re: Obscurity of lexicals with do ""
p4raw-id: //depot/maint-5.005/perl@1683
reparse the file every time you call it, so you probably don't want to
do this inside a loop.
+If C<do> cannot read the file, it returns undef and sets C<$!> to the
+error. If C<do> can read the file but cannot compile it, it
+returns undef and sets an error message in C<$@>. If the file is
+successfully compiled, C<do> returns the value of the last expression
+evaluated.
+
Note that inclusion of library modules is better done with the
C<use()> and C<require()> operators, which also do automatic error checking
and raise an exception if there's a problem.