update change#2670 to later version
[p5sagit/p5-mst-13.2.git] / t / op / fh.t
CommitLineData
35cd451c 1#!./perl
2
f2f2613b 3print "1..5\n";
35cd451c 4
5my $test = 0;
6
7# symbolic filehandles should only result in glob entries with FH constructors
8
9my $a = "SYM000";
10print "not " if defined(fileno($a)) or defined *{$a};
11++$test; print "ok $test\n";
12
13select select $a;
14print "not " if defined *{$a};
15++$test; print "ok $test\n";
16
17print "not " if close $a or defined *{$a};
18++$test; print "ok $test\n";
19
20print "not " unless open($a, ">&STDOUT") and defined *{$a};
21++$test; print $a "ok $test\n";
22
23print "not " unless close $a;
24++$test; print $a "not "; print "ok $test\n";