http://qs1969.pair.com?node_id=362357


in reply to Re: if -s clause on a FILEHANDLE
in thread if -s clause on a FILEHANDLE

You don't have to close it, but you do need to make sure that any writes that you want considered have been flushed (either by setting $|, calling $fh->flush, or closing it if you really are done).</pedant>