Changeset 406
- Timestamp:
- 07/09/07 21:03:54 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
library/perl/trunk/Parse-Apache-ServerStatus-Extended/lib/Parse/Apache/ServerStatus/Extended.pm
r405 r406 12 12 my $self = shift; 13 13 my $content = $_[0] ? shift : $self->{content}; 14 $self->_raise_error('no content received') unless $content;14 return $self->_raise_error('no content received') unless $content; 15 15 16 16 my $table = scraper { … … 88 88 =head2 request() 89 89 90 This method excepts one or two arguments: C<url> and C<timeout>. It requests the url90 This method accepts one or two arguments: C<url> and C<timeout>. It requests the url 91 91 and safes the content into the object. The option C<timeout> is set to 180 seconds if 92 92 it is not set. … … 97 97 the parsed content. 98 98 99 It's possible to call C<parse()> with the content as a rgument.99 It's possible to call C<parse()> with the content as an argument. 100 100 101 101 my $stat = $prs->parse($content); … … 106 106 =head2 get() 107 107 108 Call C<get()> to C<request()> and C<parse()> in one step. It exceptthe same options like108 Call C<get()> to C<request()> and C<parse()> in one step. It accepts the same options like 109 109 C<request()> and returns the array reference that is returned by C<parse()>. 110 110
