$ua->request returns a HTTP::Response object.

$res is probably better written as $response.

the 'if ($res->is_success)' line is testing whether the $request succeeded
or threw some HTTP error.

hth

toby

> -----Original Message-----
> From: Rum Pel [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 3:51 PM
> To: [EMAIL PROTECTED]
> Subject: return type of $ua->request
> 
> 
> 
> use HTTP::Request::Common;
>   $ua = LWP::UserAgent->new;
> my $res =  $ua->request(GET 'http://www.sn.no/');
> if ($res->is_success) { ...
> 
> Now, what is the type of 'res' variable?
> 
> In the html documentation that comes with perl,
> I can see a list of packages, modules, the methods within
> but they dont give the return type for any of the methods.
> 
> Is there something here that I should know about perl?
> 
> 
> 
> 
> 
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to