Bee wrote:
> I have the following code :
> require LWP::UserAgent;
> my $ua = new LWP::UserAgent;
> my $result = $ua -> get('http://somewhere .com');
>
> When I print $ua, I got :LWP::UserAgent=HASH(0x1a953c4)
> When I print $result, I got HTTP::Response=LWP::UserAgent=HASH(0x1a953c4)
>
> What's that mean ?
It means that you tried to print objects.
> And how can I extract the page data that I want ?
This is one place to look for the answer:
perldoc HTTP::Message
You probably want:
print $result->content;
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>