Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Line number in a file

by pelagic (Priest)
on Jul 06, 2004 at 09:39 UTC ( [id://372051]=note: print w/replies, xml ) Need Help??


in reply to Re: Line number in a file
in thread Line number in a file

>    It all depends upon the value of $/, the record separator variable.
Of course if you read a file in slurp mode you actually just read 1 record and the official name INPUT_LINE_NUMBER is somewhat misleading because lines become a logical measure.
And if you set $/ to some weird separator the meaning of line is actually set to something completely different.

pelagic

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found