WWW::S...:Count(3pm)
π WWW::Search::Null::Count(3pm) β yes bestie, it's a Perl manpage π
Okay so picture this: it's perl v5.30.3, and you're staring at the WWW::Search::Null::Count page from the User Contributed Perl Documentation. Grab a strawberry π, because this one's short and honestly kind of iconic.
β¨ NAME β¨
WWW::Search::Null::Count β literally just a 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.
No cap, you literally get $iCount results. The search string does not matter one bit π
πΈ DESCRIPTION πΈ
So this class is a specialization of WWW::Search β and here's the cute part β it returns some hits, but no error message. Not one. Zero drama. π
The number of hits it hands back is under your control, bestie: just add a '_null_count' hash entry onto your call to WWW::Search::new(). And if you don't say anything?
The default is 5. Five little results, just vibing. β¨
Why does this exist? Glad you asked π β this module might be useful for testing a client program without actually being connected to any particular search engine. It's giving fake search engine, real results. Main character energy for your test suite, fr fr. π
π AUTHOR π
Martin 'Kingpin' Thurn, "mthurn at cpan.org", <http://tinyurl.com/nn67z>. Absolute legend, we stan π«Ά
β¨ and that's the whole page, bestie β no more options, no hidden flags, we ate and left no crumbs β¨
Sign-off szn: this gem dropped with perl v5.30.3, dated 2020-09-10 π go forth and test your clients, iykyk π
π¦ where this page comes from
- debian bookworm: libwww-search-perl 2.51.90+~cs6.78-2 Β· USC
- debian trixie: libwww-search-perl 2.51.90+~cs6.78-2 Β· USC
- ubuntu jammy: libwww-search-perl 2.51.90+~cs6.78-2 Β· USC
- ubuntu noble: libwww-search-perl 2.51.90+~cs6.78-2 Β· USC
- ubuntu resolute: libwww-search-perl 2.51.90+~cs6.78-2 Β· USC
- ubuntu stonking: libwww-search-perl 2.51.90+~cs6.78-2 Β· USC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms