summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-06-01 08:12:00 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-06-01 08:12:00 +0000
commit46836f5c247eb34869c545432b788a4a49f94ab5 (patch)
treed2d913901118bc2e3d4c9c4daee1fb2e097315a7
parentd78bda3d795fc7304baa075ae01db33175e538c2 (diff)
downloadperl-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
-rw-r--r--pod/perlfunc.pod8
-rw-r--r--pod/perltrap.pod6
2 files changed, 9 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
diff --git a/pod/perltrap.pod b/pod/perltrap.pod
index 3f54edef2b..c59ecc4daf 100644
--- a/pod/perltrap.pod
+++ b/pod/perltrap.pod
@@ -586,6 +586,12 @@ Some error messages will be different.
=item * Discontinuance
+In Perl 4, if in list context the delimiters to the first argument of
+C<split()> were C<??>, the result would be placed in C<@_> as well as
+being returned. Perl 5 has more respect for your subroutine arguments.
+
+=item * Discontinuance
+
Some bugs may have been inadvertently removed. :-)
=back