WWW::SherlockSearch::Results - Sherlock search results
use WWW::SherlockSearch::Results; my $resultStruct = WWW::SherlockSearch::Results->new; $resultStruct->setServiceName($name); $resultStruct->setServiceDescription($description); $resultStruct->setBaseHREF($base_href); $resultStruct->setHost($host); $resultStruct->setPictureUrl($picture_url); $resultStruct->setChannelUrl($channel_url); $resultStruct->setQueryAttr($query_attr); $resultStruct->setBannerImage($banner_image_url); $resultStruct->setBannerLink($banner_url); $resultStruct->add($itemurl, $content, $relev, $rest, $fulltext, $date); # ... add some more entries my $text = $results->asString; my $atom = $results->asAtomString; my $rss = $results->asRssString; my $html = $results->asHtmlString;
This module represents the result set returned by a Sherlock query.
WWW::SherlockSearch
Damian Steer <D.M.Steer@lse.ac.uk>
Kang-min Liu <gugod@gugod.org<gt>
Autrijus Tang <autrijus@autrijus.org>
Copyright 1999, 2000, 2001 by Damian Steer.
Copyright 2002, 2003 by Kang-min Liu.
Copyright 2002, 2003, 2004 by Autrijus Tang.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install WWW::SherlockSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::SherlockSearch
CPAN shell
perl -MCPAN -e shell install WWW::SherlockSearch
For more information on module installation, please visit the detailed CPAN module installation guide.