readline() on unopened filehandle at ...