The necessary additions, to be placed after what is shown, are trivial
No. The trivial additions are most certainly wrong.
If F2 is exhausted first, the last line read from F1 inside the loop is lost, because $a is scoped to the block, and last leaves that block.
In reply to Re^2: reading two files in parallel
by moritz
in thread reading two files in parallel
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |