WWW::S...:Count(3pm)

πŸ“¦
version 2.51.90+~cs6.78 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… 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 πŸ’