diff options
author | Moritz Lenz <moritz@faui2k3.org> | 2009-08-12 14:41:17 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-08-12 13:46:10 +0100 |
commit | 521fe6911c4cc74d9f8b0db8553451c4ccf7ad7f (patch) | |
tree | 661fe1b75a84b5247fd4cc60ad1d5d3cbcf39964 /pod | |
parent | 94a9a4bc91d62776a9de76c5bf25aeb1129c1a24 (diff) | |
download | perl-521fe6911c4cc74d9f8b0db8553451c4ccf7ad7f.tar.gz |
document split in void context in perlfunc.pod
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 3330b8554d..67b001dac5 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -5473,9 +5473,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 |