diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-06-01 08:12:00 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-06-01 08:12:00 +0000 |
commit | 46836f5c247eb34869c545432b788a4a49f94ab5 (patch) | |
tree | d2d913901118bc2e3d4c9c4daee1fb2e097315a7 /pod/perlfunc.pod | |
parent | d78bda3d795fc7304baa075ae01db33175e538c2 (diff) | |
download | perl-46836f5c247eb34869c545432b788a4a49f94ab5.tar.gz |
remove incorrect documentation about implicit split to @_ in
list context, which never really worked in perl 5 (from
M.J.T. Guy)
p4raw-id: //depot/perl@6185
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index f24c1d2ad3..ce08134532 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4304,11 +4304,9 @@ Example, assuming array lengths are passed before arrays: Splits a string into a list of strings and returns that list. By default, empty leading fields are preserved, and empty trailing ones are deleted. -If not in list context, returns the number of fields found and splits into -the C<@_> array. (In list context, you can force the split into C<@_> by -using C<??> as the pattern delimiters, but it still returns the list -value.) The use of implicit split to C<@_> is deprecated, however, because -it clobbers your subroutine arguments. +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. If EXPR is omitted, splits the C<$_> string. If PATTERN is also omitted, splits on whitespace (after skipping any leading whitespace). Anything |