After looking at the perldoc, eof(FH) is only returning if EOF is reached. In that case, it seems that using defined() will do as good as either $lineA or $lineB will be set to undef (and therefore be tested in the loop).
Is that correct?
In reply to Re^2: Reading concurrently two files with different number of lines
by frogsausage
in thread Reading concurrently two files with different number of lines
by frogsausage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |