Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Getting/Editing a file through telnet

by Moonie (Friar)
on Feb 06, 2002 at 01:32 UTC ( [id://143520]=note: print w/replies, xml ) Need Help??


in reply to Getting/Editing a file through telnet

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

Replies are listed 'Best First'.
Re: Re: Getting/Editing a file through telnet
by naive (Novice) on Feb 06, 2002 at 02:04 UTC
    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 !!!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://143520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found