I guess Perl does a buffered write. Soo the un filled buffers may not get
flushed when the process terminates abruptly as it does in C.
David,
What made that APPEND to work. If you don't mind can you explain?
Thanks,
Venkat
-----Original Message-----
From: Stephen P. Potter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 4:38 AM
To: Venkat Mohan
Cc: 'David Freeman'; [EMAIL PROTECTED]
Subject: Re: appending to file?
Lightning flashed, thunder crashed and Venkat Mohan <[EMAIL PROTECTED]>
wh
ispered:
| ------_=_NextPart_001_01C1155C.C049A170
| Content-Type: text/plain;
| charset="iso-8859-1"
|
| Are you closing the APPEND file at the end of the process?
As long as the process terminates, the close() will happen automatically.
| open(APPEND,">>testfile") || die print "Can't open testfile: $!\n";
What is "die print"? You only need one of them.
-spp
--
Stephen P Potter [EMAIL PROTECTED]
"You can't just magically invoke Larry and expect that to prove your point.
Or prove that you have a point." -Simon Cozens
UNIX, Perl, PHP, Web Consulting and Training http://www.unixlabs.net/~spp/