in reply to feed File::Find::Name from a list
Does it work better if you chomp the lines you read from the file?
while (<JPG>) { chomp; # save so F::F doesn't overwrite my $extension = qr/$_/; find( sub { push @foundfiles, $File::Find::name if /$extension/; }, + @directories ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: feed File::Find::Name from a list
by Thelonius (Priest) on Oct 05, 2004 at 21:06 UTC | |
by HeadScratcher (Novice) on Oct 05, 2004 at 22:02 UTC | |
by cyclist38 (Hermit) on Oct 06, 2004 at 08:47 UTC | |
by jdalbec (Deacon) on Oct 05, 2004 at 22:15 UTC | |
by jdporter (Paladin) on Oct 06, 2004 at 13:56 UTC |