summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRobin Houston <robin@cpan.org>2001-05-08 20:38:00 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-08 22:41:49 +0000
commita1063b2d347f61fd47f71876da72ed835b315f8a (patch)
tree5acfac5f57302e9b42647499cf4ec310f57e8419 /pod
parent41f3e7ef1e9972c4d0bb1ddef78e045c6a2b4d74 (diff)
downloadperl-a1063b2d347f61fd47f71876da72ed835b315f8a.tar.gz
[PATCH op.c] Deprecate %x->{'foo'}, @y->[23] etc
Date: Tue, 8 May 2001 19:38:00 +0100 Message-ID: <20010508193800.A4389@penderel> Subject: Re: [PATCH op.c] Deprecate %x->{'foo'}, @y->[23] etc From: Robin Houston <robin@kitsite.com> Date: Tue, 8 May 2001 20:03:57 +0100 Message-ID: <20010508200357.A4614@penderel> Subject: Re: [PATCH op.c] Deprecate %x->{'foo'}, @y->[23] etc From: Robin Houston <robin@kitsite.com> Date: Wed, 9 May 2001 00:12:05 +0100 Message-ID: <20010509001205.A18521@puffinry.freeserve.co.uk> p4raw-id: //depot/perl@10043
Diffstat (limited to 'pod')
-rw-r--r--pod/perldiag.pod15
1 files changed, 14 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index cd32d72146..7b69b63e89 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -2751,7 +2751,7 @@ could be a potential Year 2000 problem.
=item pragma "attrs" is deprecated, use "sub NAME : ATTRS" instead
-(W deprecated) You have written something like this:
+(D deprecated) You have written something like this:
sub doit
{
@@ -3812,6 +3812,19 @@ usually optimized into C<"that " . $foo>, and the warning will refer to
the C<concatenation (.)> operator, even though there is no C<.> in your
program.
+=item Using a hash as a reference is deprecated
+
+(D deprecated) You tried to use a hash as a reference, as in C<%foo->{"bar"}>
+or C<%$ref->{"hello"}. Versions of perl <= 5.6.1 used to allow this syntax,
+but shouldn't have. It is now deprecated, and will be removed in a future
+version.
+
+=item Using an array as a reference is deprecated
+
+(D deprecated) You tried to use an array as a reference, as in C<@foo->[23]>
+or C<@$ref->[99]>. Versions of perl <= 5.6.1 used to allow this syntax, but
+shouldn't have. It is now deprecated, and will be removed in a future version.
+
=item Value of %s can be "0"; test with defined()
(W misc) In a conditional expression, you used <HANDLE>, <*> (glob),