Find::Find::Rule

Posted by emueyes on 2011-10-25 23:59
Forums: PPM | OS: All / Any

I'm using PPM 4.10 and ActivePerl 5.10.1.1007 on Win7 64bit

Also, I'm really fumbling around, 'coding by Google', so it may be that the answer to this is to 'go and Google it and stop being lazy'. On the chance, though, that there's something that is specific to ActivePerl and CPAN:

Some code I wish to use refers to File::Find::Rule, which doesn't appear to be available, and gives me this error

Can't locate File/Find/Rule.pm in @INC (@INC contains: D:/Program Files/Perl64/site/lib D:/Program Files/Perl64/lib
.) at F:\work\test.pl line 4.
BEGIN failed--compilation aborted at F:\work\test.pl line 4.

Code like my @subdirs = File::Find::Rule->directory->in( $directory ) looks nice and clean to me.

Ultimately I'm trying to traverse a directory full of other directories, take just the largest file in each subdirectory and make a link to it, for example taking the largest .m2ts file in the stream directory of a bunch of Bluray type directory trees.

chorny | Thu, 2011-11-10 16:30

ppm install File::Find::Rule

it it is not available with ppm

cpan File::Find::Rule