Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Any advise on improving this because it does work but want to make sure I am doing it the most efficient way.use strict; use File::Find; my $directory = '/perl/bin'; find( \&Searcher, map "$directory/$_", qw(FirstOne SecondTwo ThirdThre +e)); sub Searcher { if(-d $_) { print "$File::Find::name\n"; #Do stuff in each directory here ... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Doing stuff in specific directories on Unix
by sauoq (Abbot) on Jul 28, 2003 at 20:05 UTC | |
by chromatic (Archbishop) on Jul 28, 2003 at 20:22 UTC | |
by sauoq (Abbot) on Jul 28, 2003 at 20:26 UTC | |
by Anonymous Monk on Jul 29, 2003 at 11:57 UTC |