File::FindByRegexFile::FindByRegex is a Perl wrapper for File::Find. | |
Download |
File::FindByRegex Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Enrique Castilla Contreras
- Publisher web site:
- http://search.cpan.org/~ecastilla/
File::FindByRegex Tags
File::FindByRegex Description
File::FindByRegex is a Perl wrapper for File::Find. File::FindByRegex is a Perl wrapper for File::Find that finds a directory tree and runs some action for each file whose name matchs a regex.SYNOPSYS use File::FindByRegex; $find = File::FindByRegex->new( { -srcdir => , -tardir => 'C:tmpteradata-sqldoc', -find => {no_chdir => 1}, -callbacks => { qr/.p(l|m|od|t)$/oi, => &treat_pod, qr/\sql\.+?.sql$/oi, => 'treat_pod', qr/.html?$/oi, => &treat_html, qr/.txt$/oi => &treat_txt, qr/.(jpg|gif|png|bmp|tiff)$/ => sub { &treat_graphic(@_) } }, -ignore => , -excepts => }); sub File::FindByRegex::treat_pod { my $this = shift; ... } sub File::FindByRegex::treat_html { my $this = shift; ... } sub File::FindByRegex::treat_txt { my $this = shift; ... } sub File::FindByRegex::treat_graphic { my $this = shift; ... } $find->travel_tree;Requirements:· Perl Requirements: · Perl
File::FindByRegex Related Software