Hi Monks I have this code to search for specific directories, I'd like to speed up the search by getting file::find when it hits one of these directories to stop and move on to other directories searching for the pattern, under the pattern matched directory can be a whole lot of other sub directories but none matching what I'm looking for, file::find is looking at all of these hence the slow search results I'm getting.
I'm unable to get installed other modules like file:find:prune etc#!/usr/bin/perl # dirpath use strict; use warnings; use File::Find; #*****************Path Variables********************** our $testpath = 'C:\\Temp\\'; #******************************************************* find(\&dir_names, $testpath); sub dir_names { return unless -d; print "$File::Find::dir/$_\n" if /[IPD]\d{8}$/; }
In reply to Limiting file:find depth question by RockE
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |