naive has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Recently I download the Net::Telnet mod. I am able to login to the server but cant seem to open/edit a file.I read thru the document and tried to open a file in the server using the fhopen/get method but still unsuccesful.
Any advice greatly appreciated.
Thks

Replies are listed 'Best First'.
Re: Getting/Editing a file through telnet
by Moonie (Friar) on Feb 06, 2002 at 01:32 UTC
    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
      Hi thanks for your reply.
      I dun quite understand what the documentation meant by the filehandle must already be opened for I/O. Is this done at the server or the client side??
      Thanks !!!