Thanks a lot, all are giving the answers that I want, thanks !!!
----- Original Message -----
From: "Gunnar Hjalmarsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 15, 2004 12:34 AM
Subject: Re: Strange result from LWP::UserAgent, how to extract ?!
> 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>
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>