![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Need a better way to count input linesby Theo (Priest) |
on May 07, 2004 at 20:23 UTC ( #351597=note: print w/replies, xml ) | Need Help?? |
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-
In Section
Seekers of Perl Wisdom
|
|