Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

WWW::Search::Null::Count

Name WWW::Search::Null::Count
Version 1.017
Located at /usr/share/perl5
File /usr/share/perl5/WWW/Search/Null/Count.pm
Is Core No
Search CPAN for this module WWW::Search::Null::Count
Documentation WWW::Search::Null::Count
Module Details WWW::Search::Null::Count

NAME

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


SYNOPSIS

  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.


DESCRIPTION

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.


AUTHOR

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

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026