Small eval documentation tweak
authorBo Lindbergh <blgl@hagernas.com>
Wed, 26 Nov 2008 10:54:53 +0000 (11:54 +0100)
committerSteve Peters <steve@fisharerojo.org>
Thu, 27 Nov 2008 14:53:59 +0000 (14:53 +0000)
Message-Id: <F5D05263-9E5C-4B6D-8233-E11DE1D207E8@hagernas.com>

p4raw-id: //depot/perl@34945

pod/perlfunc.pod

index e3d9b27..65e019b 100644 (file)
@@ -1549,7 +1549,8 @@ itself.  See L</wantarray> for more on how the evaluation context can be
 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<$@>.