Simply use the foreach loop to parse each file and redirect the output to output directory
For Example:my $output_dir = 'output/'; foreach my $file (@files) { print $file . "\n"; #Parse the file here open(FH, '>>', $output_dir.$file ) or die "Unable to open the +file: $!"; print FH "Output goes into output directory with the same file + name\n"; close(FH); }
In reply to Re^3: Input Output Question
by vinoth.ree
in thread Input Output Question
by perlmonk007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |