WWW::Search::Null::Count(3pm)

WWW::Search::Null::Count3pm

Class for testing www::search clients

Usage

  use WWW::Search;
  my $iCount = 4;
  my $oSearch = new WWW::Search('Null::Count',
                                '_null_count' => $iCount,
                               );
  $oSearch->native_query('Makes no difference what you search for...');
  my @aoResults = $oSearch->results;
  # ...You get $iCount results.

Overview

This class is a specialization of WWW::Search that returns some hits, but no error message. The number of hits returned can be controlled by adding a '_null_count' hash entry onto the call to WWW::Search::new(). The default is 5.

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

Releases

11 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1–5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Author

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

From libwww-search-perl 2.51.90+~cs6.78-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.