Getopt...thList(3pm)
π Getopt::Yath::Option::PathList π
okay bestie so this is a page from the Getopt::Yath family β it lives in the 3pm section of the perl manual (yes, that's the perl modules corner, iykyk). Pull up a chair, we're talking about an option type that eats paths.
β¨ NAME β¨
Getopt::Yath::Option::PathList β it's the option vibe that takes one or more paths, and wild cards? allowed. periodt.
π¦ DESCRIPTION π¦
So like. This option lets you specify multiple files and/or paths, wildcards included, and those wildcards get expanded. That's it, that's the whole assignment. It ate and left no crumbs. π
πΈ SYNOPSIS πΈ
here's the look, literally:
option changed => (
type => 'PathList',
split_on => ',',
description => "Specify one or more files as having been changed.",
long_examples => [' path/to/file'],
);
see how split_on is ','? yeah you split your list on commas, iconic behaviour honestly.
π METHODS π
not me showing up with methods β every single method from Getopt::Yath::Option::List is inherited, no cap. But these ones are overridden or at least worth a lil shout-out:
normalize_value(@input)β okay so if your values contain wildcard characters, specifically"*", those get expanded using Perl'sglob()function. Everything else β all the other processing, bestie β gets delegated straight to the parent class. She's a team player. π«Ά
π§ SOURCE π§
the source code repository for Getopt-Yath is right here, go be nosy:
<http://github.com/Test-More/Getopt-Yath/>
π MAINTAINERS π
Chad Granum <exodist@cpan.org>
β AUTHORS β
Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://dev.perl.org/licenses/>
and that's the whole page, angel. π this one's from perl v5.40.1, dated <hotpink>2026-05-10</hotpink> β mwah, go read some paths, ily πβ¨
π¦ where this page comes from
- ubuntu stonking: libgetopt-yath-perl 2.000011-2 Β· 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