If you want to open it for reading, use '<' instead.
In reply to Re: Filehandle opened only for output error by JavaFan in thread Filehandle opened only for output error by Sismetic