diff options
author | Robin Houston <robin@cpan.org> | 2001-05-08 20:38:00 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-08 22:41:49 +0000 |
commit | a1063b2d347f61fd47f71876da72ed835b315f8a (patch) | |
tree | 5acfac5f57302e9b42647499cf4ec310f57e8419 /t/pragma/warn | |
parent | 41f3e7ef1e9972c4d0bb1ddef78e045c6a2b4d74 (diff) | |
download | perl-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 't/pragma/warn')
-rw-r--r-- | t/pragma/warn/op | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/t/pragma/warn/op b/t/pragma/warn/op index b4b8e4e468..2f847ad14c 100644 --- a/t/pragma/warn/op +++ b/t/pragma/warn/op @@ -205,6 +205,36 @@ EXPECT Use of implicit split to @_ is deprecated at - line 3. ######## # op.c +use warnings 'deprecated'; +my (@foo, %foo); +%main::foo->{"bar"}; +%foo->{"bar"}; +@main::foo->[23]; +@foo->[23]; +$main::foo = {}; %$main::foo->{"bar"}; +$foo = {}; %$foo->{"bar"}; +$main::foo = []; @$main::foo->[34]; +$foo = []; @$foo->[34]; +no warnings 'deprecated'; +%main::foo->{"bar"}; +%foo->{"bar"}; +@main::foo->[23]; +@foo->[23]; +$main::foo = {}; %$main::foo->{"bar"}; +$foo = {}; %$foo->{"bar"}; +$main::foo = []; @$main::foo->[34]; +$foo = []; @$foo->[34]; +EXPECT +Using a hash as a reference is deprecated at - line 4. +Using a hash as a reference is deprecated at - line 5. +Using an array as a reference is deprecated at - line 6. +Using an array as a reference is deprecated at - line 7. +Using a hash as a reference is deprecated at - line 8. +Using a hash as a reference is deprecated at - line 9. +Using an array as a reference is deprecated at - line 10. +Using an array as a reference is deprecated at - line 11. +######## +# op.c use warnings 'void' ; close STDIN ; 1 x 3 ; # OP_REPEAT # OP_GVSV |