develooper Front page | perl.libwww | Postings from February 2003

LWP problems with ePerl

Thread Next
From:
Ashish Mukherjee
Date:
February 12, 2003 01:20
Subject:
LWP problems with ePerl
Message ID:
3E4A1008.D360ED4C@jobsahead.com
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


Thread Next


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