diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-09-14 14:41:10 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-09-14 14:42:13 +0200 |
commit | a96d018829db6d60ab7d14d2ba51db878e944ddd (patch) | |
tree | 03a355aa371f7b7f135750fefb16336ac9ecff39 /pod | |
parent | 8c8273e3a8fb69fa8e9d9bca975ed4c97278ca5d (diff) | |
download | perl-a96d018829db6d60ab7d14d2ba51db878e944ddd.tar.gz |
Doc nit in perlfunc for die() and warn() with an empty message
[perl #69126] warn "eats" leading unded values as if nonexistent
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 776aaf25ef..08c406c0cd 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1275,14 +1275,14 @@ produce, respectively See also exit(), warn(), and the Carp module. -If LIST is empty and C<$@> already contains a value (typically from a +If the output is empty and C<$@> already contains a value (typically from a previous eval) that value is reused after appending C<"\t...propagated">. This is useful for propagating exceptions: eval { ... }; die unless $@ =~ /Expected exception/; -If LIST is empty and C<$@> contains an object reference that has a +If the output is empty and C<$@> contains an object reference that has a C<PROPAGATE> method, that method will be called with additional file and line number parameters. The return value replaces the value in C<$@>. i.e. as if C<< $@ = eval { $@->PROPAGATE(__FILE__, __LINE__) }; >> @@ -7392,7 +7392,7 @@ Prints the value of LIST to STDERR. If the last element of LIST does not end in a newline, it appends the same file/line number text as C<die> does. -If LIST is empty and C<$@> already contains a value (typically from a +If the output is empty and C<$@> already contains a value (typically from a previous eval) that value is used after appending C<"\t...caught"> to C<$@>. This is useful for staying almost, but not entirely similar to C<die>. |