NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Bytes or lines (Score:2)
In general, if your file is line-based, you are probably best off using Tie::File; if you need to change characters (bytes) at a specific location in the file, then you probably want to use things like seek, tell, and the update file open option.
I put this here not because Ovid doesn't know it, but in case anyone was reading and wondering. ;) There are many other solutions, and it definitely depends on a lot of factors.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Reply to This