in reply to Re^2: Reading Multiple filesin thread Reading Multiple files
Hoe to generate different file names for the output?
maheshkumar:
Any way you like. You could do something like:
my $output_filename="OUTPUT.001"; for my $filename (@filelist) { do_stuff($filename, $output_filename); ++$output; } [download]
But it would most likely be less confusing to just tack on a new suffix, or squirrel the file away in a different directory:
for my $filename (@filelist) { my $output_filename = $filename . ".processed"; do_stuff($filename, $output_filename); } [download]
...roboticus
When your only tool is a hammer, all problems look like your thumb.