Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Replace a text in file at given offset with other text

by petdance (Parson)
on Feb 04, 2014 at 17:59 UTC ( [id://1073449]=note: print w/replies, xml ) Need Help??


in reply to Replace a text in file at given offset with other text

Please note that the seek() function operates on a byte level, not a line level. You are saying "offset 3" which implies byte offset, but it sounds like you really mean "line number 3".

xoxo,
Andy

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found