summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-05-28 11:39:59 -0600
committerKarl Williamson <khw@cpan.org>2015-05-28 11:51:44 -0600
commit9c32a5faf28307a55a1563e50440a7a80799c67d (patch)
treef9256f6557c673036173a9e813473ad215e3ada4
parentdfd03a6ac1d5f203eddfe08b5e4b5ab70ccb1e3a (diff)
downloadperl-9c32a5faf28307a55a1563e50440a7a80799c67d.tar.gz
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
-rw-r--r--pod/perlfunc.pod16
1 files 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 C<NaN>s 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<splice>
-=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