WWW::Search::Dice is a class for searching Dice.
SYNOPSIS
use WWW::Search;
my $oSearch = new WWW::Search('Dice');
my $sQuery = WWW::Search::escape_query("unix and (c++ or java)");
$oSearch->native_query($sQuery,
{'method' => 'bool',
'state' => 'CA',
'daysback' => 14});
while (my $res = $oSearch->next_result()) {
if(isHitGood($res->url)) {
my ($company,$title,$date,$location) =
$oSearch->getMoreInfo($res->url);
print "$company $title $date $location " . $res->url . "n";
}
}
sub isHitGood {return 1;}
This class is a Dice specialization of WWW::Search. It handles making and interpreting Dice searches at http://www.dice.com.
By default, returned WWW::SearchResult objects contain only url, title and description which is a mixture of location and skills wanted. Function getMoreInfo( $url ) provides more specific info - it has to be used as
my ($company,$title,$date,$location) =
$oSearch->getMoreInfo($res->url);
Product's homepage
Requirements:
· Perl