use POSIX 'SEEK_SET';
my $file = "tf$$.txt";
print "1..5\n";
my $N = 1;
print "ok $N\n"; $N++;
print $o ? "ok $N\n" : "not ok $N\n";
$N++;
$a[0] = 'rec0';
$a[1] = "rec1$:";
$a[2] = "rec2$:$:"; # should we detect this?
my $x = shift;
my $a;
{ local $/; $a = <FH> }
print "ok $N\n";
} else {
}
$N++;
}
sub ctrlfix {
for (@_) {
s/\n/\\n/g;
s/\r/\\r/g;
}
}
END {
undef $o;
untie @a;
}