From 9c32a5faf28307a55a1563e50440a7a80799c67d Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 28 May 2015 11:39:59 -0600 Subject: perlfunc: Fix confusing entries for splice =item splice ARRAY or EXPR,OFFSET,LENGTH,LIST is what it used to say. Is that "or" to be taken literally as the 'or' operator or what? Based on irc feedback this was spit into two lines =item splice ARRAY,OFFSET,LENGTH,LIST =item splice EXPR,OFFSET,LENGTH,LIST This is also the method used in the other like-entries in the pod --- pod/perlfunc.pod | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 667d98e18b..ba776386b2 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -6901,14 +6901,22 @@ eliminate any Cs from the input list. @result = sort { $a <=> $b } grep { $_ == $_ } @input; -=item splice ARRAY or EXPR,OFFSET,LENGTH,LIST +=item splice ARRAY,OFFSET,LENGTH,LIST X -=item splice ARRAY or EXPR,OFFSET,LENGTH +=item splice ARRAY,OFFSET,LENGTH -=item splice ARRAY or EXPR,OFFSET +=item splice ARRAY,OFFSET -=item splice ARRAY or EXPR +=item splice ARRAY + +=item splice EXPR,OFFSET,LENGTH,LIST + +=item splice EXPR,OFFSET,LENGTH + +=item splice EXPR,OFFSET + +=item splice EXPR =for Pod::Functions add or remove elements anywhere in an array -- cgit v1.2.1