From: Gurusamy Sarathy Date: Thu, 1 Jun 2000 08:12:00 +0000 (+0000) Subject: remove incorrect documentation about implicit split to @_ in X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=46836f5c247eb34869c545432b788a4a49f94ab5;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index f24c1d2..ce08134 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 3f54ede..c59ecc4 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 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