diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-14 06:24:38 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-14 06:24:38 +0000 |
commit | 43051805d53a3e4c5b2185a17655cab5bedc17ed (patch) | |
tree | e2db8140ee431ea4490e4a62d46c8aebc55a920f /pod | |
parent | 9510368719223cd3ecddcaa064744e809b020662 (diff) | |
download | perl-43051805d53a3e4c5b2185a17655cab5bedc17ed.tar.gz |
[win32] merge changes#755..759,763,764 from maintbranch
p4raw-link: @764 on //depot/maint-5.004/perl: b55845b185b3655fbcb60a4cd75d05dde49129cb
p4raw-link: @763 on //depot/maint-5.004/perl: 150da09659bcba17cd7d84357c9e11bb0c85c6d8
p4raw-link: @759 on //depot/maint-5.004/perl: c8d70d09e95768371f69f084e8e237d2195ede65
p4raw-link: @755 on //depot/maint-5.004/perl: 284fa67c1ad7208c8b4dd82288a92c22d0bfdaca
p4raw-id: //depot/win32/perl@934
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 7ddb710cf6..9c021ce16f 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -3098,10 +3098,12 @@ sanity checks in the interest of speed. =item splice ARRAY,OFFSET Removes the elements designated by OFFSET and LENGTH from an array, and -replaces them with the elements of LIST, if any. Returns the elements -removed from the array. The array grows or shrinks as necessary. If -LENGTH is omitted, removes everything from OFFSET onward. The -following equivalences hold (assuming C<$[ == 0>): +replaces them with the elements of LIST, if any. In a list context, +returns the elements removed from the array. In a scalar context, +returns the last element removed, or C<undef> if no elements are +removed. The array grows or shrinks as necessary. If LENGTH is +omitted, removes everything from OFFSET onward. The following +equivalences hold (assuming C<$[ == 0>): push(@a,$x,$y) splice(@a,$#a+1,0,$x,$y) pop(@a) splice(@a,-1) @@ -4009,6 +4011,13 @@ for no value (void context). Produces a message on STDERR just like die(), but doesn't exit or throw an exception. +If LIST is empty and $@ already contains a value (typically from a +previous eval) that value is used after appending "\t...caught" +to $@. This is useful for staying almost, but not entirely similar to +die(). + +If $@ is empty then the string "Warning: Something's wrong" is used. + No message is printed if there is a C<$SIG{__WARN__}> handler installed. It is the handler's responsibility to deal with the message as it sees fit (like, for instance, converting it into a die()). Most |