agent00013 has asked for the wisdom of the Perl Monks concerning the following question:
I can ignore individual files in the update sub by doing if ($pwd =~ /$restrict/) {}#skip it but is there a way to skip over the entire directory (and it's subdirectories) without touching any of the files (and, of course, continue processing other directories afterwards)?my($restrict) = "/web/.backup"; #don't go in here!! find(\&update,$somestartingdir); #find and execute sub on each file sub update { #blah, do whatever }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: skip directories when using File::Find
by TGI (Parson) on Jun 27, 2001 at 04:43 UTC | |
by agent00013 (Pilgrim) on Jun 28, 2001 at 19:33 UTC | |
|
Re: skip directories when using File::Find
by blakem (Monsignor) on Jun 27, 2001 at 03:31 UTC | |
|
Re: skip directories when using File::Find
by DrZaius (Monk) on Jun 27, 2001 at 03:55 UTC |