Just wanted to second Kenny's good advice regarding File::Find. It is a
very good tool and will make life a lot easier for you.
Jeremiah
Sun, May 20, 2007 at 01:06:35PM -0400: Kenny Gatdula mangled some bits into
this alignment:
Hi Doug,
I really couldn't tell you if this is a known
The Camel book is a bit scary describing performance of filename globbing with
the *.pl or the glob(*.pl) syntax with or without use Cwd in the
preamble. Portability is declared questionable.
I find that the only thing that works is * within a loop where each file is
tested by hand.
Consider
Hi Doug,
I really couldn't tell you if this is a known problem, but, this
seems to be a job for File::Find.
Hope this helps,
Kenny
use File::Find;
use File::Basename;
my @directories_to_search = '/Users/kennyg';
find(\wanted, @directories_to_search);
sub wanted {
my $file = $_;
The Camel book is a bit scary describing performance of filename globbing with
the *.pl or the glob(*.pl) syntax with or without use Cwd in the
preamble. Portability is declared questionable.
I find that the only thing that works is * within a loop where each file is
tested by hand.
Consider