in reply to Re: Best way to handle readline errors?
in thread Best way to handle readline errors?

The doc says "Closes the file or pipe associated with the file handle, returning true only if IO buffers are successfully flushed and closes the system file descriptor. Closes the currently selected filehandle if the argument is omitted."

So, I don't think that will work for input files.
  • Comment on Re^2: Best way to handle readline errors?

Replies are listed 'Best First'.
Re^3: Best way to handle readline errors?
by ikegami (Patriarch) on Nov 11, 2006 at 02:41 UTC

    I just confirmed through testing that close doesn't return an error (on Windows, using Perl 5.8.8). Sorry, I didn't have a chance to test it earlier.