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.
In reply to Re: Reading two text files parallelly...
by JavaFan
in thread Reading two text files parallelly...
by biswanath_c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |