in reply to To retrieve all files according to given path list
Asked quite often! Usual -good- answer: use File::Find or its relatives, File::Finder and File::Find::Rule.
perl -MFile::Find -le "find { no_chdir =>1, wanted => sub {print} }, @ +ARGV" C:\temp\
(should work under Windows with double quotes)
Incidentally @ARGV[0] is not strictly wrong, but in Perl 5 it is more customary to write $ARGV[0] instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: To retrieve all files according to given path list
by ikegami (Patriarch) on Dec 22, 2005 at 16:46 UTC | |
by blazar (Canon) on Dec 22, 2005 at 16:56 UTC | |
by devlele (Novice) on Dec 22, 2005 at 18:35 UTC | |
by blazar (Canon) on Dec 23, 2005 at 11:14 UTC |