Message-ID: <Pine.LNX.4.21.
0105011627110.1526-100000@marmot.rim.canoe.ca>
p4raw-id: //depot/perl@9939
s->var = newSVpvn("",0);
}
sv_upgrade(s->var,SVt_PV);
- s->posn = 0;
+ if (strnEQ(mode,"a",1))
+ s->posn = SvCUR(SvRV(arg));
+ else
+ s->posn = 0;
return PerlIOBase_pushed(f,mode,Nullsv);
}
}
$| = 1;
-print "1..10\n";
+print "1..11\n";
my $fh;
my $var = "ok 2\n";
print $fh "Flintstone";
print "not " unless $var eq "Fred and Wilma Flintstone";
print "ok 10\n";
+# Test appending
+close $fh;
+$var = "Fred and Wilma ";
+open $fh, ">>", \$var;
+print $fh "Flintstone";
+print "not " unless $var eq "Fred and Wilma Flintstone";
+print "ok 11\n";