Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Line number in a file

by busunsl (Vicar)
on Jul 06, 2004 at 08:37 UTC ( #372042=note: print w/ replies, xml ) Need Help??


in reply to Line number in a file

When you read the file line by line, $. will give you the current linenumber. If you just slurp it, you'll have to set up a counter.


Comment on Re: Line number in a file

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2014-07-24 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls