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;
In reply to Re: Input Output Question
by vinoth.ree
in thread Input Output Question
by perlmonk007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |