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

πŸŽ€ NAME πŸŽ€

Okay bestie, this is the manual page for Path::I...:Is::Any(3) β€” aka Path::IsDev::Role::Matcher::FullPath::Is::Any. Its whole thing is matching when the current directory is the same directory from a list of absolute paths. slay ✨

πŸ’œ VERSION πŸ’œ

version 1.001003 β€” that's the version, no cap. πŸ’œ

✨ METHODS ✨

🌸 fullpath_is_any 🌸

Quick note from the page: this is usually invoked on directories anyway. iykyk

if ( $self->fullpath_is_any( $result_object, '/usr/', '/usr/bin/foo' )) {

}

Matches if any of the provided paths' realpaths correspond to $result_object->path->realpath. That's the match condition, periodt.

πŸ”’ PRIVATE METHODS πŸ”’

πŸ¦‹ _fullpath_is πŸ¦‹

$class->_fullpath_is( $result_object, $source_path, $comparison_path );
Heads up: it does not match if $comparison_path does not exist. 🫢

Otherwise, it compares $source_path vs $comparison_path->realpath, and returns if they match. simple as that

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


Bye bestie! This is Path::I...:Is::Any(3), manual source/version perl v5.42.0, dated 2017-03-11. πŸŒˆπŸ’…

πŸ“¦ where this page comes from