go ahead... be a heretic | |
PerlMonks |
Re: Replace a text in file at given offset with other textby petdance (Parson) |
on Feb 04, 2014 at 17:59 UTC ( [id://1073449]=note: print w/replies, xml ) | Need Help?? |
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,
In Section
Seekers of Perl Wisdom
|
|