Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Perl as a telnet server?

by Revelation (Deacon)
on Dec 14, 2002 at 18:19 UTC ( [id://219876]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl as a telnet server?
in thread Perl as a telnet server?

A quick question:
Why use Expect.pm, when you can use Net::Telnet? Could you provide some sort of cursory explenation about why Expect programming would be better for this cause?
Gyan Kapur
gyan.kapur@rhhllp.com

Replies are listed 'Best First'.
Re: Re: Re: Perl as a telnet server?
by logan (Curate) on Dec 14, 2002 at 19:14 UTC
    I'm not sure what the cause is. Sure, Net::Telnet will establish the connection, but Expect.pm has all sorts of functions for looking for specific user-defined responses, and automatically recognizes a prompt. If it's a matter of telnetting in, doing an ls, and exiting, Expect is overkill, but if there's an extended conversation between client and server, Expect makes life easier.

    -Logan
    "What do I want? I'm an American. I want more."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-23 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found