summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorBo Borgerson <gigabo@gmail.com>2009-08-26 09:47:33 -0400
committerYves Orton <demerphq@gmail.com>2009-09-13 20:16:17 +0200
commita6d8037e26aaceac1a62ab1a36249ff12386c7ff (patch)
tree8698c6eca6a90d3b477aff15d1ba3c8b8f4cfd02 /pod
parentd681dfadbe84f87244e6602d414cdb00dce19f95 (diff)
downloadperl-a6d8037e26aaceac1a62ab1a36249ff12386c7ff.tar.gz
split: Remove implicit split to @_
Remove the long deprecated feature where split in scalar context writes to @_
Diffstat (limited to 'pod')
-rw-r--r--pod/perldiag.pod6
-rw-r--r--pod/perlfunc.pod5
2 files changed, 1 insertions, 10 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 9447ba44f1..1f7bc0bc8e 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -4742,12 +4742,6 @@ to access the filehandle slot within a typeglob.
operator. Since C<split> always tries to match the pattern
repeatedly, the C</g> has no effect.
-=item Use of implicit split to @_ is deprecated
-
-(D deprecated, W syntax) It makes a lot of work for the compiler when you
-clobber a subroutine's argument list, so it's better if you assign the results
-of a split() explicitly to an array (or list).
-
=item Use of inherited AUTOLOAD for non-method %s() is deprecated
(D deprecated) As an (ahem) accidental feature, C<AUTOLOAD> subroutines
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index fd28b00e7e..776aaf25ef 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -5471,10 +5471,7 @@ 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. 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.
+In scalar context, returns the number of fields found.
If EXPR is omitted, splits the C<$_> string. If PATTERN is also omitted,
splits on whitespace (after skipping any leading whitespace). Anything