in reply to Using more than one filehandle
If the former, no single CPU computer can do it, but some multiprocessor machines may be able to, provided their operating system supports it.
If the later (more probable), then there is no problem:
At this point you have two files open and you can read from the first with <FILE1> and from the second with <FILE2>.open(FILE1,"</some/file/somewhere") || die "Could not open FILE1: $!\n +"; open(FILE2,"</some/other/file") || die "Could not open FILE2: $!\n";
Or, if you open the files for writing, you can write to them like this:
print FILE1 "something to be written to FILE1\n";
|
|---|