in reply to Filehandle opened only for output error
If you want to open it for reading, use '<' instead.