Path::I...Any::Dir(3)

✨ NAME ✨

Manual name on the tin: Path::I...Any::Dir(3) β€” filed under User Contributed Perl Documentation (yes, the header is giving truncated-iconic, iykyk). The full module is Path::IsDev::Role::Matcher::Child::Exists::Any::Dir, and its whole vibe is: match if a path contains one of any of a list of directories. Slay.

πŸ’– VERSION πŸ’–

version 1.001003

Bestie, that is the version. Write it down, no cap.

πŸŽ€ METHODS πŸŽ€

πŸ¦‹ child_exists_dir

$class->child_exists_dir( $result_object, $childname );

Return match if $childname exists as a directory child of "$result_object->path". That is the whole check: child name, directory, under the result object’s path. Periodt.

🌸 child_exists_any_dir

$class->child_exists_any_dir( $result_object, @childnames );

Return match if any of @childnames exist under "$result_object->path" and are directories. So like, one of the list has to be a directory under that path. Easy.

πŸ‘‘ 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.


Cute sign-off: this page is from perl v5.42.0, dated 2017-03-11, and the footer name is Path::I...Any::Dir(3). Bye bestie, go match those directories πŸ’…πŸ’–πŸ«Ά

πŸ“¦ where this page comes from