WWW::Search::Null::Error - class for testing WWW::Search clients
require WWW::Search; my $oSearch = new WWW::Search('Null::Error'); $oSearch->native_query('Makes no difference what you search for...'); $oSearch->retrieve_some(); my $oResponse = $oSearch->response; # You get an HTTP::Response object with a code of 500
This class is a specialization of WWW::Search that only returns an error message.
This module might be useful for testing a client program without actually being connected to any particular search engine.
Martin Thurn <mthurn@cpan.org>
To install WWW::Search, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Search
CPAN shell
perl -MCPAN -e shell install WWW::Search
For more information on module installation, please visit the detailed CPAN module installation guide.