Dist::Z...nderUser(3)
π Dist::Z...nderUser(3) β aka Dist::Zilla::Role::FileFinderUser π
okay bestie, welcome to the manual page for Dist::Zilla::Role::FileFinderUser (it's a Perl thing, it lives in the User Contributed Perl Documentation section, and yes the header got its name all squished, that's just the terminal being extra). VERSION? It's version 6.040. slay. β¨
πΈ NAME πΈ
Dist::Zilla::Role::FileFinderUser β literally "something that uses FileFinder plugins". that's the whole vibe. π¦
β¨ DESCRIPTION β¨
bestie. this role is the main character of file-hunting. it lets you search for files in the dist, which means finding specific files is lowkey effortless, and the code doing it gets factored out into common methods. obsessed. π
here's an example of a finder, borrowed straight from AutoPrereqs:
with 'Dist::Zilla::Role::FileFinderUser' => {
default_finders => [ ':InstallModules', ':ExecFiles' ],
};
and then you actually use it in your code like this:
foreach my $file ( @{ $self->found_files }) {
# $file is an object! Look at L<Dist::Zilla::Role::File>
}
note the comment: $file is an object, not just a string. look at Dist::Zilla::Role::File. iykyk. π«Ά
π§ PERL VERSION π§
ngl this part is a whole mood of its own. this module should work on any version of perl still receiving updates from the Perl 5 Porters. translated for the girlies: any perl released in the last two to three years. (so if the freshest release is v5.40, then this works on both v5.40 and v5.38. periodt.)
β οΈ and even though it might work on older perls, there is no guarantee the minimum required version won't get bumped. the version may be increased for any reason, and there's no promise that patches will be accepted to lower the minimum required perl. so don't come for her. π
π ATTRIBUTES π
π finder_arg_names
defines the name of the attribute that's gonna hold this finder. be sure to specify different names if you have multiple finders! (yes this is shouting at you. listen.)
this is an ArrayRef.
Default: [ qw( finder ) ]
π default_finders
this attribute is an arrayref of plugin names for the default plugins that the consuming plugin will use as finders. iconic behaviour.
Example: [ qw( :InstallModules :ExecFiles ) ]
the default finders are:
:InstallModulesβ searches yourlib/directory for pm/pod files:IncModulesβ searches yourinc/directory for pm files:MainModuleβ finds themain_moduleof your dist:TestFilesβ searches yourt/directory and lists the files in it:ExtraTestFilesβ searches yourxt/directory and lists the files in it:ExecFilesβ searches your distribution for executable files. hint: use theDist::Zilla::Plugin::ExecDirplugin to mark those files as executables πβοΈ:PerlExecFilesβ a subset of:ExecFileslimited just to perl scripts (the ones ending with.pl, or with a recognizable perl shebang):ShareFilesβ searches your ShareDir directory and lists the files in it. hint: use theDist::Zilla::Plugin::ShareDirplugin to set up the sharedir π:AllFilesβ returns all files in the distribution:NoFilesβ returns nothing. (she said what she said. π)
π method
this will be the name of the subroutine installed in your package for this finder. and again β be sure to specify different names if you have multiple finders! two finders with the same method name is giving chaos, and not the cute kind. π
Default: found_files
π AUTHOR π
Ricardo SIGNES π <cpan@semiotic.systems> β yeah the emoji is literally in the source, we love a legend with range. π
β 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. so go off, but respectfully. π«Ά
and that's the whole page, bestie! π this gorgeous little number is from perl v5.42.3, dated 2026-10-19, filed under Dist::Z...nderUser(3) β which, yes, is just Dist::Zilla::Role::FileFinderUser(3) with the name aggressively cropped by the man page formatter. she's compressed but she's thriving. bye bestie, go find some files! π¦β¨π
π¦ 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