Martin 'Kingpin' Thurn > WWW-Search-2.509 > WWW::Search::Null::Empty

Download:
WWW-Search-2.509.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.010   Source   Latest Release: WWW-Search-2.513

NAME ^

WWW::Search::Null::Empty - class for testing WWW::Search clients

SYNOPSIS ^

  use WWW::Search;
  my $oSearch = new WWW::Search('Null::Empty');
  $oSearch->native_query('Makes no difference what you search for...');
  my @aoResults = $oSearch->results;
  # You get no results...
  my $oResponse = $oSearch->response;
  # ...But you get an HTTP::Response object with a code of 200

DESCRIPTION ^

This class is a specialization of WWW::Search that returns no hits, but no error message.

This module might be useful for testing a client program without actually being connected to any particular search engine.

AUTHOR ^

Martin 'Kingpin' Thurn, mthurn at cpan.org, http://tinyurl.com/nn67z.

syntax highlighting: