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


in reply to Re: Need a better way to count input lines
in thread Need a better way to count input lines

I've never used map before. It looks like @lines ends up with three elements because of the "1 .. 3" range. .oO(Verrry useful)
Would the loop work the same if you used until (eof FILE) instead of the while?

Update: Thanks for the update!

-Theo-
(so many nodes and so little time ... )