develooper Front page | perl.perl5.porters | Postings from March 2000

Re: What's left to do? [LONG]

From:
Sam Tregar
Date:
March 22, 2000 20:32
Subject:
Re: What's left to do? [LONG]
Message ID:
Pine.LNX.4.21.0003222323410.14362-100000@zoltar.vm.com
On Wed, 22 Mar 2000, Robert Spier wrote:

> The Expect.pm interface is similar to TCL's Expect interface (which I
> have never used.), and while it takes a while to get used to it, and
> the documentation is spread out through a few different files and
> examples, it's not ``horrid''

Actually it is signficantly worse than the Expect in TCL.  In particular
Expect in TCL totally avoids the necessity of examining the return value
of expect().  In Expect.pm the return value is suddenly the entire
feedback mechanism!

The author (Austin Schutz) has expressed a desire to see this change, but
it didn't seem to me at the time that he had any intention of doing so.

> But I've found that the interface is very easy to use in the simple
> cases, and usable in more difficult cases.

True.  On the other hand, TCL's Expect is comfortable in all the cases
I've put it to use in, so of which could qualify as difficult.  See
_Exploring Expect_ for copious details!

If I ever have to automate a closed-source text-based application again I
think my first step would be to update or replace Expect.pm.  Will that
day come?  I'm not sure.  The number of such apps is definitely dropping.

-sam





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About