summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-03-20 16:47:16 +0100
committerNicholas Clark <nick@ccl4.org>2013-03-21 09:13:52 +0100
commit982110e06e40aad7a538cb788327cca8aaabce22 (patch)
treee066a5b50eb3efeb3074649db1ffd561fc376bb1 /pod
parent53213d38f22e9356f489162e494d2ffa46ec2ca2 (diff)
downloadperl-982110e06e40aad7a538cb788327cca8aaabce22.tar.gz
Add a deprecation warning for all uses of @*, %*, &* and **.
All compile-time uses of the ** typeglob now warn.
Diffstat (limited to 'pod')
-rw-r--r--pod/perldelta.pod7
-rw-r--r--pod/perldiag.pod7
2 files changed, 13 insertions, 1 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 1a17400034..68f070f5a1 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -192,7 +192,12 @@ XXX L<message|perldiag/"message">
=item *
-XXX L<message|perldiag/"message">
+L%c* is deprecated, and will become a syntax error|perldiag/"%c* is deprecated, and will become a syntax error">
+
+Use of C<@*>, C<&*>, C<**> or C<%*> is now deprecated, and will generate a
+compile time warning, enabled by default. In future such code will fail to
+compile with a syntax error. Removing these variables, along with C<$*>,
+will permit future syntax additions.
=back
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 069e1aab71..17d13ceaaa 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -2618,6 +2618,13 @@ modifiers. You can enable C</m> for a lexical scope (even a whole file)
with C<use re '/m'>. (In older versions: when C<$*> was set to a true value
then all regular expressions behaved as if they were written using C</m>.)
+=item %c* is deprecated, and will become a syntax error
+
+(D deprecated, syntax) The punctuation variables C<@*>, C<&*>, C<**> and
+C<%*> will be removed soon. In future such code will fail to compile with a
+syntax error. Removing these variables along with C<$*> will permit future
+syntax additions.
+
=item $# is no longer supported
(D deprecated, syntax) The special variable C<$#>, deprecated in older