diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-26 11:56:09 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-26 11:56:09 +0000 |
commit | 29a56bd6e3b2d1b7d8c6ee93c429f2f0039ed155 (patch) | |
tree | 8d41a8b67c49105089f204cf34a8d8b21cefcdc4 /t | |
parent | dd6c8177e5440c89519dc12801e5cda199096ebf (diff) | |
download | perl-29a56bd6e3b2d1b7d8c6ee93c429f2f0039ed155.tar.gz |
Retract #12232.
p4raw-id: //depot/perl@12233
Diffstat (limited to 't')
-rwxr-xr-x | t/op/gv.t | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -11,7 +11,7 @@ BEGIN { use warnings; -print "1..42\n"; +print "1..41\n"; # type coersion on assignment $foo = 'foo'; @@ -105,6 +105,16 @@ print ref *x{FORMAT} eq "FORMAT" ? "ok 21\n" : "not ok 21\n"; print *{*x{GLOB}} eq "*main::STDOUT" ? "ok 22\n" : "not ok 22\n"; print {*x{IO}} "ok 23\n"; +{ + my $warn; + local $SIG{__WARN__} = sub { + $warn .= $_[0]; + }; + my $val = *x{FILEHANDLE}; + print {*x{IO}} ($warn =~ /is deprecated/ ? "ok 42\n" : "not ok 42\n"); + +} + # test if defined() doesn't create any new symbols { @@ -175,15 +185,5 @@ print {*x{IO}} "ok 23\n"; print $g; } -{ - my $warn; - local $SIG{__WARN__} = sub { - $warn .= $_[0]; - }; - my $val = *x{FILEHANDLE}; - print {*x{IO}} ($warn =~ /is deprecated/ ? "ok 42\n" : "not ok 42\n"); - -} - __END__ ok 41 |