1WWW::Search::Null::EmptUys(e3r)Contributed Perl DocumentWaWtWi:o:nSearch::Null::Empty(3)
2
3
4
6 WWW::Search::Null::Empty - class for testing WWW::Search clients
7
9 use WWW::Search;
10 my $oSearch = new WWW::Search('Null::Empty');
11 $oSearch->native_query('Makes no difference what you search for...');
12 my @aoResults = $oSearch->results;
13 # You get no results...
14 my $oResponse = $oSearch->response;
15 # ...But you get an HTTP::Response object with a code of 200
16
18 This class is a specialization of WWW::Search that returns no hits, but
19 no error message.
20
21 This module might be useful for testing a client program without
22 actually being connected to any particular search engine.
23
25 Martin 'Kingpin' Thurn, "mthurn at cpan.org",
26 <http://tinyurl.com/nn67z>.
27
28
29
30perl v5.30.1 2020-01-30 WWW::Search::Null::Empty(3)