Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Need a better way to count input lines

by Theo (Priest)
on May 07, 2004 at 20:23 UTC ( #351597=note: print w/ replies, xml ) Need Help??


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 ... )


Comment on Re: Re: Need a better way to count input lines
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://351597]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-09-20 04:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (153 votes), past polls