Dist::Z...::ByName(3)
π Dist::Z...::ByName(3) π
okay bestie, so this is the manual page for Dist::Zilla::Plugin::FileFinder::ByName β you're reading the Dist::Z...::ByName(3) page, and ngl it's a sleeper hit. it's a FileFinder, which means it picks out files for you based on pathnames. tiny module, immaculate vibes π
β¨ NAME β¨
Dist::Zilla::Plugin::FileFinder::ByName β a FileFinder that matches on pathnames π¦
πΈ VERSION πΈ
version 6.040
π SYNOPSIS π
In your dist.ini:
[FileFinder::ByName / MyFiles]
dir = bin ; look in the bin/ directory
dir = lib ; and the lib/ directory
file = *.pl ; for .pl files
match = \.pm$ ; and for .pm files
skip = ignore ; that don't have "ignore" in the path
look at that. she's organized. she's specific. she knows exactly what she wants π
π DESCRIPTION π
FileFinder::ByName is a FileFinder that selects files by matching the criteria you specify against the pathname. that's it, that's the whole thing, and the way it does it is so clean.
there are three types of criteria you can use, and honestly each one is doing its own little job:
"dir"limits the search to a particular directory."match"is a regular expression that must match the pathname."skip"is a regular expression that must not match the pathname.
Each key can be specified multiple times. Multiple occurrences of the same key are ORed together. Different keys are ANDed together. so to get selected, a file has to:
- be located in one of the
"dir"s, - match one of the
"match"regexs, - and not match any of the
"skip"regexs.
periodt. that's the whole selection algorithm, no cap.
heads up bestie β"file"and"match"are considered to be the same key. they're just different ways to write a regex that the pathname must match. don't come for me, I'm just the messenger π
Omitting a particular key means that criterion will not apply to the search. Omitting all keys will select every file in your dist. (iconic behavior, but maybe not what you meant to do.)
Note: If you need to OR different types of criteria, then use more than one instance ofFileFinder::ByName. AFileFinderUsershould allow you to specify more than one FileFinder to use. iykyk π
π¦ PERL VERSION π¦
This module should work on any version of perl still receiving updates from the Perl 5 Porters. This means it should work on any version of perl released in the last two to three years. (That is, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.)
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 likeβ¦ don't get attached to ancient perl, she may not be invited to the function later π
π ATTRIBUTES π
π dir
The file must be located in one of the specified directories (relative to the root directory of the dist).
π file
The filename must match one of the specified patterns (which are converted to regexs using Text::Glob and combined with any "match" rules).
π match
The pathname must match one of these regular expressions.
π skip
The pathname must not match any of these regular expressions.
π CREDITS π
This plugin was originally contributed by Christopher J. Madsen. we love a founding contributor π«Ά
β AUTHOR β
Ricardo SIGNES π <cpan@semiotic.systems>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 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. free as in, go off, do your thing, slay π
aaaand that's the whole page bestie, no notes. this was Dist::Z...::ByName(3), generated from perl v5.42.3 on 2026-10-19 β go find some files, you're gonna eat πβ¨
π¦ where this page comes from
- fedora 44: perl-Dist-Zilla 6.040-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms