Path::I...p::File(3)
hii bestie π welcome to the Path::I...p::File(3) page β itβs the User Contributed Perl Documentation version, and the full module name is a whole mouthful: Path::IsDev::Role::Matcher::Child::BaseName::MatchRegexp::File.
πΈ NAME πΈ
Path::IsDev::Role::Matcher::Child::BaseName::MatchRegexp::File β this role matches when any children have basenames that match a regexp, and those matching children are also files. No cap, thatβs the whole vibe. π
π VERSION π
version 1.001003 β thatβs the version, bestie. β¨
β¨ METHODS β¨
child_basename_matchregexp_file
Okay so the call looks like this:
$class->child_basename_matchregexp_file( $result_object, $regexp );
Given a regexp $regexp, match if any of "$result_object->path->children" match the given regexp, on the condition that those that match are also files. Basically: regexp match + file check, together, iconic. π
Example time:
if ( $self->child_basename_matchregexp_file( $result_object, qr/^Change(.*)$/i ) ) {
# result_object->path() contains at least one child that is a file and matches the regexp
}
We love a clear example π«Ά
π«Ά PRIVATE METHODS π«Ά
_this_child_isfile
Private helper call, bestie:
if ( $class->_this_child_isfile( $result_object, $child_path ) ) {
...
}
iykyk π
π AUTHOR π
Kent Fredric <kentnl@cpan.org> β author, periodt. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Okay bye bestie π«Ά this page comes from perl v5.42.0, dated 2017-03-11, with manual tag Path::I...p::File(3) β slay. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Path-IsDev 1.001003-bp160.1.11 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms