On Tue, Sep 17, 2002 at 01:50:34AM -0400, 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.
Others on this list have answered your question, and attempted to address your confusion about function return values. I would just like to mention that it is documented what LWP::UserAgent's request() method returns. I'm not certain what HTML documentation you're referring too, but the second paragraph in the DESCRIPTION section of http://perldoc.com/perl5.8.0/lib/LWP/UserAgent.html says explicitly what the request() method returns. This URL is basically just an HTML version of the documentation that comes with the Perl module. You should be able to access it yourself, locally, with the perldoc command, i.e. perldoc LWP::UserAgent. Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]