or die "Couldn't create temp file $file: $!; aborting";
binmode F;
-my $o = tie @a, 'Tie::File', \*F, autochomp => 0;
+my $o = tie @a, 'Tie::File', \*F, autochomp => 0, autodefer => 0;
print $o ? "ok $N\n" : "not ok $N\n";
$N++;
$a[0] = 'longer0';
check_contents("longer0", "longer1", "long2");
-# 25-34 shortening alterations, including truncation
+# 25-38 shortening alterations, including truncation
$a[0] = 'short0';
check_contents("short0", "longer1", "long2");
$a[1] = 'short1';
undef $o;
untie @a;
-# Does it correctly detect a non-seekable handle?
-{ if ($^O =~ /^(MSWin32|dos)$/) {
+# (39) Does it correctly detect a non-seekable handle?
+{ if ($^O =~ /^(MSWin32|dos|beos)$/) {
print "ok $N # skipped ($^O has broken pipe semantics)\n";
last;
}
+ if ($] < 5.006) {
+ print "ok $N # skipped - 5.005_03 panics after this test\n";
+ last;
+ }
my $pipe_succeeded = eval {pipe *R, *W};
if ($@) {
chomp $@;