p4raw-id: //depot/perl@12232
use warnings;
-print "1..41\n";
+print "1..42\n";
# type coersion on assignment
$foo = 'foo';
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 24\n" : "not ok 24\n");
-
-}
-
# test if defined() doesn't create any new symbols
{
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