File-Find-Rule
view release on metacpan or search on metacpan
91011121314151617181920212223242526272829
next
unless
-d
$dir
;
my
@pm
= find(
name
=>
'*.pm'
,
maxdepth
=> 1,
exec
=>
sub
{ (
my
$name
=
$_
) =~ s/\.pm$//;
eval
"require File::Find::Rule::$name"
; },
in
=>
$dir
);
}
# what directories are we searching in?
my
@where
;
while
(
@ARGV
) {
local
$_
=
shift
@ARGV
;
if
(/^-/) {
unshift
@ARGV
,
$_
;
last
;
}
push
@where
,
$_
;
}
# parse arguments, build a rule object
my
$rule
= new File::Find::Rule;
while
(
@ARGV
) {
( run in 0.369 second using v1.01-cache-2.11-cpan-87723dcf8b7 )