http://www.perlmonks.org?node_id=950685


in reply to Re^2: Opening multiple files
in thread Opening multiple files

will this ever return out of the while loop?

Yes, due to the

last unless defined $lines[0];

where $lines[0] becomes undef when EOF of the first file has been reached.

Replies are listed 'Best First'.
Re^4: Opening multiple files
by kielstirling (Scribe) on Jan 30, 2012 at 02:11 UTC
    arr yes that will do it .. so i am still asleep :)