4 $: = Tie::File::_default_recsep();
5 my $data = "rec1$:rec2$:rec3$:";
11 print "ok $N\n"; $N++;
13 open F, "> $file" or die $!;
19 my $o = tie @a, 'Tie::File', $file;
20 print $o ? "ok $N\n" : "not ok $N\n";
27 # 3 test array element count
29 print $n == 3 ? "ok $N\n" : "not ok $N # n=$n\n";
34 print $n == 3 ? "ok $N\n" : "not ok $N # n=$n\n";
39 print $n == 2 ? "ok $N\n" : "not ok $N # n=$n\n";
42 # 6 test looping over array elements
45 print $q eq $data ? "ok $N\n" : "not ok $N # n=$n\n";