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>


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