File::...::Find(3pm)
β¨ NAME β¨
File::Wildcard::Find β bestie, it's literally just a simple interface to File::Wildcard π (it's a 3pm page, if you're keeping track, and yes it lives in the User Contributed Perl Documentation π
)
πΈ SYNOPSIS πΈ
okay so here's the whole vibe, no cap:
use File::Wildcard::Find;
findbegin( "/home/me///core");
while (my $file = findnext()) {
unlink $file;
}
likeβ¦ that's it. that's the whole thing. iconic π
π¦ DESCRIPTION π¦
so File::Wildcard is the full-on, comprehensive object interface β it lets you do powerful wildcard processing, and she serves π
. but some people are like "girl this is too much for a lil task" and honestly? valid. it's giving unwieldy for the simple stuff π.
enter File::Wildcard::Find, the lowkey straightforward version π«Ά. the tradeoff bestie: only a single wildcard stream is accessible at a time. but for one-liners and simple apps?? that is more than sufficient, fr fr β¨.
β FUNCTIONS β
π findbegin
takes 1 parameter: a path with wildcards, passed as a string π.
want the deets on what you can actually pass in there? go look at File::Wildcard β she's got the full lore π.
π findnext
an iterator, bestie π. it returns successive matches one at a time, and thenβ¦ undef π. that's your sign to stop looping, iykyk.
π§ findall
returns a list of all the matches, all at once, no waiting around β.
π reminder thatFile::Wildcard::Findis the chill one β one wildcard stream, simple life. if you need the full-power object interface, that'sFile::Wildcard's moment, not this one's.
anyway that's the whole page, hope it slayed π
β¨ this gem is perl v5.36.0 coded up on 2022-12-12, and it's filed under File::...::Find(3pm) in the User Contributed Perl Documentation β mwah, bye bestie πππ¦
π¦ where this page comes from
- debian bookworm: libfile-wildcard-perl 0.11-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libfile-wildcard-perl 0.11-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libfile-wildcard-perl 0.11-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libfile-wildcard-perl 0.11-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libfile-wildcard-perl 0.11-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms