NAME

PIR - Short alias for Path::Iterator::Rule

VERSION

version 0.012

SYNOPSIS

use PIR;

my $rule = PIR->new;          # match anything
$rule->file->size(">10k");    # add/chain rules

# iterator interface
my $next = $rule->iter( @dirs );
while ( my $file = $next->() ) {
  ...
}

# list interface
for my $file ( $rule->all( @dirs ) ) {
  ...
}

DESCRIPTION

This is an empty subclass of Path::Iterator::Rule. It saves you from having to type the full name repeatedly, which is particularly handy for one-liners:

$ perl -MPIR -wE 'say for PIR->new->skip_dirs(".")->perl_module->all(@INC)'

AUTHOR

David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2013 by David Golden.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004