in reply to Re^2: Merging files, 1 line for every 10
in thread Merging files, 1 line for every 10

The use of $. does make things more simple. I'll have to take note of that for similar situations in the future. What is the benefit of the added defined call?

Replies are listed 'Best First'.
Re^4: Merging files, 1 line for every 10
by GrandFather (Saint) on Sep 08, 2011 at 20:51 UTC

    It deals with the edge case where $line gets a value that is false before the actual end of file.

    True laziness is hard work