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."