in reply to Is there a workaround for threads breaking Expect.pm logging?

The following code telnets to google
Why?

First, you have LWP, which handles HTTP far better than Expect ever will.

Second, Google specifically has rules about automatic access, so you are probably about to violate some license agreement.

Learn about the Google API. Use it with Net::Google and friends. Get a license key—they're free!

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re: Is there a workaround for threads breaking Expect.pm logging?

Replies are listed 'Best First'.
Re^2: Is there a workaround for threads breaking Expect.pm logging?
by knave (Acolyte) on Aug 01, 2005 at 18:03 UTC
    Why did I telnet to Google? Because it is demonstration code!

    I know and love LWP and Net::Google. My real application has no need for them. My real application is a console app for manufacturing test systems. It uses Expect to drive hardware functionality and performance tests of multiple Units-Under-Test, over both telnet and serial sessions. I could never post the original code that reproduces this bug because 1) it would be huge, 2) nobody would be able to use it, and 3) I don't even know if I have the rights to post it.

    So I ginned up a reproduction that happened to telnet to the site most likely to be accessible to all perl monks!

    Dave