Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Question on Reading a file inside while and counting no.of lines

by Laurent_R (Parson)
on Jun 15, 2013 at 22:10 UTC ( #1039164=note: print w/ replies, xml ) Need Help??


in reply to Question on Reading a file inside while and counting no.of lines

You have been given three good answers, but I especially support Davido's recommendation to use the "$." variable (line count in the file being read) rather than counting yourself the line number. It is simpler, easier and probably faster.


Comment on Re: Question on Reading a file inside while and counting no.of lines

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-12-20 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls