Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Reading Multiple files

by roboticus (Chancellor)
on Aug 07, 2012 at 19:52 UTC ( #986069=note: print w/replies, xml ) Need Help??


in reply to Re^3: Reading Multiple files
in thread Reading Multiple files

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; }

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); }

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986069]
help
Chatterbox?
Discipulus earthquake in roma..
[Corion]: Discipulus: Whoa! I hope just a minor quake
[Discipulus]: it is probably far from roma.. i hope is not another dramatic event..

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2017-01-18 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (161 votes). Check out past polls.