NAME

WWW::Scroogle::Result - A Subclass for Search Results from WWW::Scroogle

SYNOPSIS

my @results = $scroogle->get_results;

print $_->position, ' ', $_->url, "\n" for @results;

DESCRIPTION

WWW::Scroogle::Result provides a object layer for search results from WWW::Scroogle

METHODS

WWW::Scroogle::Result->new(\%options)

Returns a new WWW::Scroogle::Result object from the given options the required options are:

  • url

  • position

  • searchstring

  • language

croaks if errors occur

$result->url

returns the url of the result

$result->position

returns the position of the result

$result->searchstring

returns the searchstring used in WWW::Scroogle while performing the search

$result->language

returns the language used in WWW::Scroogle while performing the search

CAVEATS

This is just a alpha release so dont expect it to work properly.

AUTHOR

Written by Lars Hartmann, <lars (at) chaotika (dot) org>.

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Lars Hartmann, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.