home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_666c0d318413f4cc5e37fa979c98873f
< prev
next >
Wrap
Text File
|
2000-03-23
|
10KB
|
241 lines
<HTML>
<HEAD>
<TITLE>WWW::Search::Dice - class for searching Dice</TITLE>
<LINK REL="stylesheet" HREF="../../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> WWW::Search::Dice - class for searching Dice</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#options">OPTIONS</A></LI>
<UL>
<LI><A HREF="#format / treatment of query terms">Format / Treatment of Query Terms</A></LI>
<LI><A HREF="#restrict by date">Restrict by Date</A></LI>
<LI><A HREF="#restrict by location">Restrict by Location</A></LI>
<LI><A HREF="#restrict by job term">Restrict by Job Term</A></LI>
<LI><A HREF="#restrict by job type">Restrict by Job Type</A></LI>
<LI><A HREF="#limit total number of hits">Limit total number of hits</A></LI>
</UL>
<LI><A HREF="#author">AUTHOR</A></LI>
<LI><A HREF="#legalese">LEGALESE</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>WWW::Search::Dice - class for searching Dice</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
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";
}
}</PRE>
<PRE>
sub isHitGood {return 1;}</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>This class is a Dice specialization of WWW::Search.
It handles making and interpreting Dice searches at
<EM><A HREF="http://www.dice.com">http://www.dice.com</A></EM>.</P>
<P>By default, returned WWW::SearchResult objects contain only url, title
and description which is a mixture of location and skills wanted.
Function <STRONG>getMoreInfo( $url )</STRONG> provides more specific info - it has to
be used as</P>
<PRE>
my ($company,$title,$date,$location) =
$oSearch->getMoreInfo($res->url);</PRE>
<P>
<HR>
<H1><A NAME="options">OPTIONS</A></H1>
<P>The following search options can be activated by sending
a hash as the second argument to native_query().</P>
<P>
<H2><A NAME="format / treatment of query terms">Format / Treatment of Query Terms</A></H2>
<P>The default is to treat entire query as a boolean
expression with AND, OR, NOT and parentheses</P>
<DL>
<DT><STRONG><A NAME="item_%7B%27method%27_%3D%3E_%27and%27%7D">{'method' => 'and'}</A></STRONG><BR>
<DD>
Logical AND of all the query terms.
<P></P>
<DT><STRONG><A NAME="item_%7B%27method%27_%3D%3E_%27or%27%7D">{'method' => 'or'}</A></STRONG><BR>
<DD>
Logical OR of all the query terms.
<P></P>
<DT><STRONG><A NAME="item_%7B%27method%27_%3D%3E_%27bool%27%7D">{'method' => 'bool'}</A></STRONG><BR>
<DD>
treat entire query as a boolean expression with
AND, OR, NOT and parentheses.
This is the default option.
<P></P></DL>
<P>
<H2><A NAME="restrict by date">Restrict by Date</A></H2>
<P>The default is to return jobs posted in last 30 days</P>
<DL>
<DT><STRONG><A NAME="item_%7B%27daysback%27_%3D%3E_%24number%7D">{'daysback' => $number}</A></STRONG><BR>
<DD>
Display jobs posted in last $number days
<P></P></DL>
<P>
<H2><A NAME="restrict by location">Restrict by Location</A></H2>
<P>The default is ``ALL'' which means all US states</P>
<DL>
<DT><STRONG><A NAME="item_%7B%27state%27_%3D%3E_%24state%7D_%2D_Only_jobs_in">{'state' => $state} - Only jobs in state $state.</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_%7B%27state%27_%3D%3E_%27CDA%27%7D_%2D_Only_jobs_i">{'state' => 'CDA'} - Only jobs in Canada.</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_%7B%27state%27_%3D%3E_%27INT%27%7D_%2D_To_select_i">{'state' => 'INT'} - To select international jobs.</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_%7B%27state%27_%3D%3E_%27TRV%27%7D_%2D_Require_tra">{'state' => 'TRV'} - Require travel.</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_%7B%27state%27_%3D%3E_%27TEL%27%7D_%2D_Display_tel">{'state' => 'TEL'} - Display telecommute jobs.</A></STRONG><BR>
<DD>
</DL>
<P>Multiple selections are possible. To do so, add a ``+'' sign between
desired states, e.g. {'state' => 'NY+NJ+CT'}</P>
<P>You can also restrict by 3-digit area codes. The following option does that:</P>
<DL>
<DT><STRONG><A NAME="item_%7B%27acode%27_%3D%3E_%24area_code%7D">{'acode' => $area_code}</A></STRONG><BR>
<DD>
</DL>
<P>Multiple area codes (up to 5) are supported.</P>
<P>
<H2><A NAME="restrict by job term">Restrict by Job Term</A></H2>
<P>No restrictions by default.</P>
<DL>
<DT><STRONG><A NAME="item_%7B%27term%27_%3D%3E_%27CON%27%7D_%2D_contract_job">{'term' => 'CON'} - contract jobs</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_%7B%27term%27_%3D%3E_%27C%2FH%27%7D_%2D_contract_t">{'term' => 'C/H'} - contract to hire</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_%7B%27term%27_%3D%3E_%27FTE%27%7D_%2D_full_time">{'term' => 'FTE'} - full time</A></STRONG><BR>
<DD>
</DL>
<P>Use a '+' sign for multiple selection.</P>
<P>There is also a switch to select either W2 or Independent:</P>
<DL>
<DT><STRONG><A NAME="item_%7B%27addterm%27_%3D%3E_%27W2ONLY%27%7D_%2D_W2_onl">{'addterm' => 'W2ONLY'} - W2 only</A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_%7B%27addterm%27_%3D%3E_%27INDOK%27%7D_%2D_Indepen">{'addterm' => 'INDOK'} - Independent ok</A></STRONG><BR>
<DD>
</DL>
<P>
<H2><A NAME="restrict by job type">Restrict by Job Type</A></H2>
<P>No restriction by default. To select jobs with specific job type use the
following option:</P>
<DL>
<DT><STRONG><A NAME="item_%7B%27jtype%27_%3D%3E_%24jobtype%7D">{'jtype' => $jobtype}</A></STRONG><BR>
<DD>
</DL>
<P>Here $jobtype (according to <EM><A HREF="http://www.dice.com">http://www.dice.com</A></EM>) can be one or more
of the following:</P>
<UL>
<LI><STRONG><A NAME="item_ANL_%2D_Business_Analyst%2FModeler">ANL - Business Analyst/Modeler</A></STRONG><BR>
<LI><STRONG><A NAME="item_COM_%2D_Communications_Specialist">COM - Communications Specialist</A></STRONG><BR>
<LI><STRONG><A NAME="item_DBA_%2D_Data_Base_Administrator">DBA - Data Base Administrator</A></STRONG><BR>
<LI><STRONG><A NAME="item_ENG_%2D_Other_types_of_Engineers">ENG - Other types of Engineers</A></STRONG><BR>
<LI><STRONG><A NAME="item_FIN_%2D_Finance_%2F_Accounting">FIN - Finance / Accounting</A></STRONG><BR>
<LI><STRONG><A NAME="item_GRA_%2D_Graphics%2FCAD%2FCAM">GRA - Graphics/CAD/CAM</A></STRONG><BR>
<LI><STRONG><A NAME="item_HWE_%2D_Hardware_Engineer">HWE - Hardware Engineer</A></STRONG><BR>
<LI><STRONG><A NAME="item_INS_%2D_Instructor%2FTrainer">INS - Instructor/Trainer</A></STRONG><BR>
<LI><STRONG><A NAME="item_LAN_%2D_LAN%2FNetwork_Administrator">LAN - LAN/Network Administrator</A></STRONG><BR>
<LI><STRONG><A NAME="item_MGR_%2D_Manager%2FProject_leader">MGR - Manager/Project leader</A></STRONG><BR>
<LI><STRONG><A NAME="item_OPR_%2D_Data_Processing_Operator">OPR - Data Processing Operator</A></STRONG><BR>
<LI><STRONG><A NAME="item_PA_%2D_Application_Programmer%2FAnalyst">PA - Application Programmer/Analyst</A></STRONG><BR>
<LI><STRONG><A NAME="item_QA_%2D_Quality_Assurance%2FTester">QA - Quality Assurance/Tester</A></STRONG><BR>
<LI><STRONG><A NAME="item_REC_%2D_Recruiter">REC - Recruiter</A></STRONG><BR>
<LI><STRONG><A NAME="item_SLS_%2D_Sales%2FMarketing">SLS - Sales/Marketing</A></STRONG><BR>
<LI><STRONG><A NAME="item_SWE_%2D_Software_Engineer">SWE - Software Engineer</A></STRONG><BR>
<LI><STRONG><A NAME="item_SYA_%2D_Systems_Administrator">SYA - Systems Administrator</A></STRONG><BR>
<LI><STRONG><A NAME="item_SYS_%2D_Systems_Programmer%2FSupport">SYS - Systems Programmer/Support</A></STRONG><BR>
<LI><STRONG><A NAME="item_TEC_%2D_Custom%2FTech_Support">TEC - Custom/Tech Support</A></STRONG><BR>
<LI><STRONG><A NAME="item_TWR_%2D_Technical_Writer">TWR - Technical Writer</A></STRONG><BR>
<LI><STRONG><A NAME="item_WEB_%2D_Web_Developer_%2F_Webmaster">WEB - Web Developer / Webmaster</A></STRONG><BR>
</UL>
<P>
<H2><A NAME="limit total number of hits">Limit total number of hits</A></H2>
<P>The default is to stop searching after 500 hits.</P>
<DL>
<DT><STRONG><A NAME="item_%7B%27num_to_retrieve%27_%3D%3E_%24num_to_retrieve">{'num_to_retrieve' => $num_to_retrieve}</A></STRONG><BR>
<DD>
Changes the default to $num_to_retrieve.
<P></P></DL>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P><CODE>WWW::Search::Dice</CODE> is written and maintained by Alexander Tkatchev
(<A HREF="mailto:Alexander.Tkatchev@cern.ch">Alexander.Tkatchev@cern.ch</A>)</P>
<P>
<HR>
<H1><A NAME="legalese">LEGALESE</A></H1>
<P>THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> WWW::Search::Dice - class for searching Dice</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>