blob: 16ba186a91eb75a45b04b3c1da33b64425cb5ffa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!./perl
BEGIN {
chdir 't';
@INC = '../lib';
require './test.pl';
}
plan tests => 8;
# symbolic filehandles should only result in glob entries with FH constructors
$|=1;
my $a = "SYM000";
ok(!defined(fileno($a)));
ok(!defined *{$a});
select select $a;
ok(defined *{$a});
$a++;
ok(!close $a);
ok(!defined *{$a});
ok(open($a, ">&STDOUT"));
ok(defined *{$a});
ok(close $a);
|