in reply to Re: Reading concurrently two files with different number of lines
in thread Reading concurrently two files with different number of lines

Thanks for the answer.

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?

  • Comment on Re^2: Reading concurrently two files with different number of lines