Filehandle %s opened only for output

  • Share
  • Share

Description:
Message> Filehandle %s opened only for output

Perl , , ,

  1. admin
    March 22nd, 2009 at 21:18 | #1

    (W io) You tried to read from a filehandle opened only for writing,
    If you intended it to be a read/write filehandle, you needed to open it
    with “+< " or "+>” or “+>>” instead of with “< " or
    nothing. If you intended only to read from the file, use "<". See “open” in perlfunc.
    Another possibility is that you attempted to open filedescriptor 0
    (also known as STDIN) for output (maybe you closed STDIN earlier?).

  1. No trackbacks yet.