Path::I...ts::Any(3)
β¨ Path::IsDev::Role::Matcher::Child::Exists::Any β¨
Okay bestie, so this little gem lives in the User Contributed Perl Documentation section of your manual β yep, it's one of ours, contributed by the community, and honestly? iconic behavior. π
Its whole vibe is: match if any of a list of children exists. That's it. That's the role. π
πΈ VERSION πΈ
version 1.001003
π¦ METHODS π¦
"child_exists"
$class->child_exists( $result_object, $path );
Returns a match if $path exists as a child of "$result_object->path". Simple, cute, does exactly what it says on the tin. β¨
"child_exists_any"
$class->child_exists_any( $result_object, @childnames );
Returns a match if any of @childnames exist under "$result_object->path". Like, it only takes one of the squad to show up and you're good β no cap. π«Ά
π AUTHOR π
Kent Fredric <kentnl@cpan.org>
π 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.
ngl, that license bit is important β it's free software, same terms as Perl 5 itself, so go forth and remix responsibly. π
Mwah π β brought to you by perl v5.42.0, dated 2017-03-11, and filed under Path::I...ts::Any(3). Go be a main character with your matchers. π§β
π¦ 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