in reply to Input Output Question
To read all the files in a directory use the directory functions: opendir(), closedir() and readdir().
@file array will contains the files available in input directory parse each file and redirect output to output directory with the same file name.opendir DIR, $dir or die "cannot open dir $dir: $!"; my @file= readdir + DIR; closedir DIR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Input Output Question
by perlmonk007 (Novice) on Jul 15, 2013 at 04:56 UTC | |
by vinoth.ree (Monsignor) on Jul 15, 2013 at 05:13 UTC | |
by perlmonk007 (Novice) on Jul 15, 2013 at 05:59 UTC | |
by vinoth.ree (Monsignor) on Jul 15, 2013 at 06:57 UTC |