Hello everyone!

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);
print get ( 'http://www.google.com/index.html' );

However, when I change the code to this (i.e don't import $ua),

use LWP::Simple qw(get);
print get ( 'http://www.google.com/index.html' );

it works perfectly well  in the Web page and shows me the Google home
page.

What could be the reason for this bizarre behaviour and how can I fix
it?

Regards,
Ashish

Reply via email to