max210 has asked for the wisdom of the Perl Monks concerning the following question:
I have to give Directory name as command line argument and read all the files in that Directory one by one. How to do it? Kindly help.
Example : perl perlscript.pl dir_name (dir_name is a directory containing few text files, Need to read all of them one by one)
Best Wishes,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Directory name as command line argument
by kyle (Abbot) on Mar 27, 2008 at 17:47 UTC | |
|
Re: Directory name as command line argument
by Pancho (Pilgrim) on Mar 27, 2008 at 17:54 UTC | |
by max210 (Novice) on Mar 27, 2008 at 18:03 UTC | |
|
Re: Directory name as command line argument
by hesco (Deacon) on Mar 27, 2008 at 18:17 UTC | |
by max210 (Novice) on Mar 27, 2008 at 18:57 UTC | |
|
Re: Directory name as command line argument
by Narveson (Chaplain) on Mar 27, 2008 at 17:55 UTC | |
by max210 (Novice) on Mar 27, 2008 at 18:05 UTC |