in reply to Re^2: Open multiple file handles?
in thread Open multiple file handles?
How does that follow from your question? You have not shown that you need to open a separate file handle (at the same time) for everything in ARGV. We have pointed out that the diamond operator opens each one in turn, automatically. From the problem you presented, there is no reason to open the files all at the same time, and even if you did so, what would you do with them all?
But a direct answer to that question is: call open for each one. What's the big deal? Call open in a loop, or get fancier with a map statement.
Do you realize that you can use a variable as the file handle, rather than an old-fashioned GLOB thing? Maybe that's the part you are missing. I hesitate to show a complete example because you should not need to do that at all.
|
---|
In Section
Seekers of Perl Wisdom