Google::Search::Result
An object represting a result from a Google search (via Google::Search)
There are a variety of property accessors associated with each result depending which service you use (web, blog, news, local, etc.)
For more information, see http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_GResult
For example, a local result has lat accessor and lng accessor:
lat
lng
print $result->uri, " ", $result->title, " at ", $result->lat, " ", $result->lng, "\n";
A URI object best representing the location of the result
"Supplies the title value of the result"
"Supplies the title, but unlike .title, this property is stripped of html markup (e.g., <b>, <i>, etc.)"
The position of the result in the search (0-based)
The previous result before $result or undef if beyond the first
The next result after $result or undef if after the last
"Indicates the "type" of result"
The result class as given by Google
To install Google::Search, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Search
CPAN shell
perl -MCPAN -e shell install Google::Search
For more information on module installation, please visit the detailed CPAN module installation guide.