summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Lenz <moritz@faui2k3.org>2009-08-12 14:41:17 +0200
committerDavid Mitchell <davem@iabyn.com>2009-08-12 19:43:30 +0100
commit9aa41cc32be72554b1c8a11d670dd3904be11d2e (patch)
tree91891fd58924ff4df84cff44ed34be911acbcaca
parent3a71026754835e2696cbd89e4f38dafaea6d6070 (diff)
downloadperl-9aa41cc32be72554b1c8a11d670dd3904be11d2e.tar.gz
document split in void context in perlfunc.pod
(cherry picked from commit 521fe6911c4cc74d9f8b0db8553451c4ccf7ad7f)
-rw-r--r--pod/perlfunc.pod7
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index b7b12cb1cc..6a7661eee7 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -5454,9 +5454,10 @@ Splits the string EXPR into a list of strings and returns that list. By
default, empty leading fields are preserved, and empty trailing ones are
deleted. (If all fields are empty, they are considered to be trailing.)
-In scalar context, returns the number of fields found and splits into
-the C<@_> array. Use of split in scalar context is deprecated, however,
-because it clobbers your subroutine arguments.
+In scalar context, returns the number of fields found. In scalar and void
+context it splits into the C<@_> array. Use of split in scalar and void
+context is deprecated, however, because it clobbers your subroutine
+arguments.
If EXPR is omitted, splits the C<$_> string. If PATTERN is also omitted,
splits on whitespace (after skipping any leading whitespace). Anything