App::Whiff(3pm)

πŸ“¦
version 0.008 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– App::Whiff β€” the manual, but make it cute ✨

okay bestie, so this page is for App::Whiff, which lives in the User Contributed Perl Documentation corner of the perl universe πŸ’…. It's a perl module, it's got 3pm energy, and it does exactly one extremely useful thing: it finds the first executable of a series of alternatives. no cap.


πŸŽ€ NAME πŸŽ€

App::Whiff β€” find the first executable of a series of alternatives πŸ”βœ¨

🌸 VERSION 🌸

version 0.008 β€” yes ma'am, we are on 0.008 and we are thriving 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

sooo this module implements the logic used by the whiff command πŸ‘‘. What does that command do? It takes a bunch of command names and hands you back the first one that exists and is executable. that's it. that's the whole vibe. it's giving "which of these do you actually have installed, bestie?" and honestly? iconic πŸ’…

⭐ PERL VERSION ⭐

ngl this one's kind of a flex: this library should run on perls released even a long time ago 😭. Specifically, it should work on any version of perl released in the last five years. so go ahead and run it on your ancient perl, she can handle it πŸ’ͺ

but β€” and this is the important part, don't skip it β€” although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl 🚫. so don't come for her with a "please support perl from 1997" PR, she said what she said πŸ™ˆ


πŸ’œ METHODS πŸ’œ

🌈 find_first

my $filename = App::Whiff->find_first(\@names);

okay so you hand her an arrayref of command names β€” and heads up, those names should not be anything other than base filename, like, no paths, just the name, bestie πŸŽ€ β€” and this method will either:

  • return an absolute path to the first of the alternatives found in the PATH (it uses File::Which to do the searching, slay), or
  • return false 🫠

that's the whole thing. she looks, she finds, she returns. main character energy fr fr.

🌸 run

This method is called by the whiff program to... well, run. 😭✨ that's genuinely the description. she does the running. the vibe is immaculate, the explanation is minimal, we respect it.


πŸ‘‘ AUTHOR πŸ‘‘

  • Ricardo SIGNES <cpan@semiotic.systems> πŸ’–

🫢 CONTRIBUTORS 🫢

the besties who showed up and helped:

  • Florian Schlichting <fsfs@debian.org>
  • Ricardo Signes <rjbs@semiotic.systems>
  • Ricardo Signes <rjbs@users.noreply.github.com>

(three whole entries, we love a credit list that's thorough πŸŽ€)


This software is copyright (c) 2008 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go wild, but respectfully πŸ¦‹


ok that's the whole page, you read it all, I'm so proud of you πŸ₯Ήβœ¨ no skipping, no skimming, full send. slay.

and that's a wrap bestie β€” this was App::Whiff, perl v5.40.1, dated 2025-05-04, straight from the User Contributed Perl Documentation section of the 3pm manual πŸ’– periodt. now go find yourself an executable πŸŽ€

πŸ“¦ where this page comes from