At 02:42 PM 2003-02-12 +0530, Ashish Mukherjee wrote:
I am facing a problem using LWP inside an ePerl page.  The following
piece of code returns nothing in the ePerl page but runs fine in a
non-Web script.
[...]use LWP::Simple qw($ua get); [versus not exporting $ua]
I'll note that LWP::Simple generally tries to use raw socket stuff (via its _trivial_http_get function) to do basic stuff, but exporting $ua (among other things) makes LWP::Simple switch to doing everything using a real LWP::UserAgent object.
But I don't know why one way would work under ePerl but the other wouldn't!

Hopefully someone who knows ePerl's quirks might be able to advise.

--
Sean M. Burke http://search.cpan.org/~sburke/



Reply via email to