in reply to Re^2: Input Output Question
in thread Input Output Question
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); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Input Output Question
by perlmonk007 (Novice) on Jul 15, 2013 at 05:59 UTC | |
by vinoth.ree (Monsignor) on Jul 15, 2013 at 06:57 UTC |