Path::IsDev::Role::NegativeHeuristic::AnyFile - Negative Heuristic if a path contains one of any of a list of files
version 0.6.0
package Some::Heuristic; use Role::Tiny::With; with 'Path::IsDev::Role::NegativeHeuristic::AnyFile'; # Match if $PATH contains any of the named children as files sub files { return qw( Foo Bar Baz .bashrc ) } 1;
excludes_files
Any consuming classes must implement this method
returns : A list of file basenames to match
excludes
Implements excludes for Path::IsDev::Role::NegativeHeuristic
Path::IsDev::Role::NegativeHeuristic
if ( $class->matches($result_object) ) { # one of the items in $class->files matched # $result_object has been modified to reflect that # _debug has been done where relevant } else { # no matches # $result_object has been modified with diagnostic data # _debug has been done where relevant }
Kent Fredric <kentfredric@gmail.com>
This software is copyright (c) 2013 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.