Path::IsDev::Role::Matcher::Child::BaseName::MatchRegexp - Match when a path has a child file matching an expression
version 1.001001
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.
$regexp
$result_object->path->children
if ( $self->child_basename_matchregexp( $result_object, qr/^Change(.*)$/i ) ) { # result_object->path() contains at least one child that matches the regexp }
_this_child_matchregexp
if ( $class->_this_child_matchregexp( $result_object, $child_path, $regexp ) ) { ... }
Kent Fredric <kentfredric@gmail.com>
This software is copyright (c) 2014 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.
To install Path::IsDev, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Path::IsDev
CPAN shell
perl -MCPAN -e shell install Path::IsDev
For more information on module installation, please visit the detailed CPAN module installation guide.