in reply to Reading two text files parallelly...
This assumes you want to stop reading if you reach the end of either file.while (defined(my $f1 = <F1>) && defined(my $f2 = <F2>)) { ... }
Oh, and you need to change how you're opening the file. You now open the files for writing.
|
|---|