At 4:48 PM -0700 8/17/00, Peter Prymmer wrote:
>On Wed, 16 Aug 2000, Tim Jenness wrote:
>
> > Try this patch against bleedperl:
[snip]
>ok 5
># TMPFILE: tmpfile got FH VMS::Stdio=GLOB(0x414820)
># TMPFILE: Wrote line: Hello a test
>Error printing to tempfile
>%RMS-E-EOF, end of file detected
This is the autoflush problem. If you skip the autoflush before the
write, the test succeeds, but it's really a bug in the VMS version
that should be fixed and has nothing to do directly with File::Temp.
I've posted this on vmsperl before but haven't submitted a bug report
since I thought I might solve it -- so far no progress:
$ type autoflush_problem.pl
use IO::Handle;
my $fh = '';
open($fh, ">fil.dat") or die $!;
$fh->autoflush(1);
print $fh 'hello' or die $!;
close($fh);
$ perl autoflush_problem.pl
end of file detected at autoflush_problem.pl line 5.
%RMS-E-EOF, end of file detected
$
>$ perl lib/ftmp-tempfile.t
>1..16
[snip]
>not ok 14
># Failed test 14 in lib/ftmp-tempfile.t at line 24
>not ok 15
># Failed test 15 in lib/ftmp-tempfile.t at line 25
>ok 16
I haven't had a chance to look at these yet but hope to this weekend.
--
____________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]