From bbead3ca7e50b701f65ec6cf737d745fbe719760 Mon Sep 17 00:00:00 2001 From: Bo Lindbergh Date: Wed, 26 Nov 2008 11:54:53 +0100 Subject: [PATCH] Small eval documentation tweak Message-Id: p4raw-id: //depot/perl@34945 --- pod/perlfunc.pod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index e3d9b27..65e019b 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1549,7 +1549,8 @@ itself. See L for more on how the evaluation context can be determined. If there is a syntax error or runtime error, or a C statement is -executed, an undefined value is returned by C, and C<$@> is set to the +executed, C 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 neither silences perl from printing warnings to STDERR, nor does it stuff the text of warning messages into C<$@>. -- 2.7.4