Path::I...hRegexp(3)

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to the Path::I...hRegexp(3) page from User Contributed Perl Documentation πŸ’–. The full module is Path::IsDev::Role::Matcher::Child::BaseName::MatchRegexp, and its whole thing is: Match when a path has a child file matching an expression ✨.

πŸ¦‹ VERSION πŸ¦‹

we're on version 1.001003, periodt πŸ‘‘.

🌸 METHODS 🌸

child_basename_matchregexp

$class->child_basename_matchregexp( $result_object, $regexp );

Given a regexp $regexp, match if any of "$result_object->path->children" match the given regexp. literally the vibe check is: does any child in that children list match your regexp? πŸ’…

if ( $self->child_basename_matchregexp( $result_object, qr/^Change(.*)$/i ) ) {
    # result_object->path() contains at least one child that matches the regexp
}

The comment is doing the explaining, and it's doing it well 🫢.

🧚 PRIVATE METHODS 🧚

_this_child_matchregexp

if ( $class->_this_child_matchregexp( $result_object, $child_path, $regexp ) ) {
    ...
}

This one is private, so it's giving backstage-pass energy β€” the original page gives this snippet and no extra tea πŸ™ˆ.

πŸ‘‘ AUTHOR πŸ‘‘

Kent Fredric <kentnl@cpan.org> β€” shoutout to the author, no cap 🌟.

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.


k bye bestie 🫢 this page is from perl v5.42.0, dated 2017-03-11, and it's filed under Path::I...hRegexp(3). slay ✨

πŸ“¦ where this page comes from