Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Laurent_R (Canon)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2017-10-18 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (240 votes). Check out past polls.

    Notices?