[sf-perl] Flushing a file.

Garth Webb 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
you'd like.


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
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/sanfrancisco-pm/attachments/20070814/e3952cc6/attachment-0001.html 

More information about the SanFrancisco-pm mailing list