[sf-perl] Flushing a file.
garth.webb at gmail.com
Tue Aug 14 11:54:08 PDT 2007
On 8/14/07, nheller at silcon.com <nheller at silcon.com> wrote:
> I've come to a point where I wish to flush the contents of a file buffer
> before closing the file.
Closing the filehandle will flush it automatically. For other times, if you
use IO::Handle you can call ->flush on an object to do the flush manually if
I looked through the Perl man pages and am unable to find this. I thought
> that since Perl is a wrapper for C, there would be a corrolary to
> fflush(), but there doesn't seem to be.
> How is this situation to be handled?
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SanFrancisco-pm