the request method of LWP::UserAgent returns a HTTP::Response object. Even though this isn't explicitly documented in the LWP::UserAgent docs (accessible via perldoc LWP::UserAgent), it seems like a reasonable first guess. You can also find the type of an object by calling ref on it:
use LWP::UserAgent; $ua = LWP::UserAgent->new; my $res = $ua->request(GET 'http://www.sn.no/'); print ref($res); returns HTTP::Response perldoc HTTP::Response for the methods available for that class. On Tuesday, September 17, 2002, at 01:50 AM, Rum Pel wrote: > > 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] > > > // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]