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

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

From:
Tom Hughes
Date:
March 23, 2000 16:08
Subject:
Re: What's left to do? [LONG]
Message ID:
1f0d06a449.tom@compton.compton.nu
In message <14553.38872.981137.976952@dell.rls.cx>
          rspier@pobox.com (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''

I found that the interface was unnatural for simple things like
waiting for a listing strings or for an re.

Specifically the business of passing '-re' before the strings to
make them match as re's is wierd. I'd have though that assuming an
re would make more sense.

Equally indicating the match as an index into the list makes for
lots of magic constants in code. I'd rather get back the string
that match, rather than then having to call another routine to get
that.

Tom

-- 
Tom Hughes (tom@compton.nu)
http://www.compton.nu/
..."Bother", said Pooh, as he failed the dope test.




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