in reply to Re^5: How to remove the actual glob from a glob reference
in thread How to remove the actual glob from a glob reference

eof() will check for next read on filehandle will return end of file, is there any function to check whether the next write on the filehandle will return end of file?.
  • Comment on Re^6: How to remove the actual glob from a glob reference

Replies are listed 'Best First'.
Re^7: How to remove the actual glob from a glob reference
by ikegami (Patriarch) on Jan 02, 2009 at 19:58 UTC

    A write will never return end of file, it'll return an error. On my system, it's error 9, "Bad file descriptor". Are you asking how to check if the file is still opened? if defined(fileno($a))