1WWW::Search::Null::CounUts(e3r)Contributed Perl DocumentWaWtWi:o:nSearch::Null::Count(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

19       This class is a specialization of WWW::Search that returns some hits,
20       but no error message.  The number of hits returned can be controlled by
21       adding a '_null_count' hash entry onto the call to WWW::Search::new().
22       The default is 5.
23
24       This module might be useful for testing a client program without
25       actually being connected to any particular search engine.
26

AUTHOR

28       Martin 'Kingpin' Thurn, "mthurn at cpan.org",
29       <http://tinyurl.com/nn67z>.
30
31
32
33perl v5.32.1                      2021-01-27       WWW::Search::Null::Count(3)
Impressum