use File::Find::Rule;
print "Enter threshold size for files to report ";
chomp( $size_req= <>);
$filename= "C:\\Unicorn";
opendir ($filename, '.') or die "Couldn't open directory, $!";
my $subdir = File::Find::Rule->directory
->name('C:\\Unicorn\\sub')
->prune
->discard;
my $rule = File::Find::Rule->new;
$rule->file;
$rule->size( ">3*1024" );
print "\n";
my @subdirs= $rule->in ($subdir);
print @subdirs;
它仍然显示独角兽文件夹中的子目录。我不知道为什么?