Changeset 406

Show
Ignore:
Timestamp:
07/09/07 21:03:54 (1 year ago)
Author:
miya
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • library/perl/trunk/Parse-Apache-ServerStatus-Extended/lib/Parse/Apache/ServerStatus/Extended.pm

    r405 r406  
    1212    my $self    = shift; 
    1313    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; 
    1515 
    1616    my $table = scraper { 
     
    8888=head2 request() 
    8989 
    90 This method excepts one or two arguments: C<url> and C<timeout>. It requests the url 
     90This method accepts one or two arguments: C<url> and C<timeout>. It requests the url 
    9191and safes the content into the object. The option C<timeout> is set to 180 seconds if 
    9292it is not set. 
     
    9797the parsed content. 
    9898 
    99 It's possible to call C<parse()> with the content as argument. 
     99It's possible to call C<parse()> with the content as an argument. 
    100100 
    101101    my $stat = $prs->parse($content); 
     
    106106=head2 get() 
    107107 
    108 Call C<get()> to C<request()> and C<parse()> in one step. It except the same options like 
     108Call C<get()> to C<request()> and C<parse()> in one step. It accepts the same options like 
    109109C<request()> and returns the array reference that is returned by C<parse()>. 
    110110