Change 34945 by [EMAIL PROTECTED] on 2008/11/27 14:53:59

        Subject: [PATCH] Small eval documentation tweak
        From: Bo Lindbergh <[EMAIL PROTECTED]>
        Date: Wed, 26 Nov 2008 10:54:53 +0100
        Message-Id: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/pod/perlfunc.pod#608 edit

Differences ...

==== //depot/perl/pod/perlfunc.pod#608 (text) ====
Index: perl/pod/perlfunc.pod
--- perl/pod/perlfunc.pod#607~34834~    2008-11-14 07:12:18.000000000 -0800
+++ perl/pod/perlfunc.pod       2008-11-27 06:53:59.000000000 -0800
@@ -1549,7 +1549,8 @@
 determined.
 
 If there is a syntax error or runtime error, or a C<die> statement is
-executed, an undefined value is returned by C<eval>, and C<$@> is set to the
+executed, C<eval> returns an undefined value in scalar context
+or an empty list in list context, and C<$@> is set to the
 error message.  If there was no error, C<$@> is guaranteed to be a null
 string.  Beware that using C<eval> neither silences perl from printing
 warnings to STDERR, nor does it stuff the text of warning messages into C<$@>.
End of Patch.

Reply via email to