in reply to reading the wrong input file out of 2 opened file
reads a line from F0 and assigns it to $_, and stops the loop unless the value is defined.while (<F0>)
On the other hand,
reads a line from F1, but doesn't assign it anywhere, and would stop the loop if the value was false.while (<F1> && ($line_stop++ < $line_no))
See I/O Operators for details.
|
|---|