Looking from the
documentation for Net::Telnet, you can't use fhopen to open a file. You need to have the file open prior to using fhopen.
fhopen - use already open filehandle for I/O
$ok = $obj->fhopen($fh);
This method associates the open filehandle $fh with $obj for further I
+/O. Filehandle $fh must already be opened.
Suppose you want to use the features of this module to do I/O to somet
+hing other than a TCP port, for example STDIN or a filehandle opened
+to read from a process. Instead of opening the object for I/O to a TC
+P port by using open() or new(), call this method instead.
Update:Check this one
site out..
-
Moon