Re: [PBML] Opening multiple files at once....
- Steve Milo wrote:
> ...If your platform is Unix,
> my @FILES = ("file1", "file2", "file3", "file4");
> open (FILE, "@FILES") || die;
> my @contents = <FILE>;
> I've come to conclusion that the only way to accomplish this is to do
> a foreach on @FILES. Then open and close until I have all the
> contents. Is there any other way to accomplish this.
open(FILE, "cat file1 file2 file3 file4 |");
my @contents = <FILE>;