Re: change one line in a large fine

Will Mengarini via beginners <[email protected]>
Newsgroups gmane.comp.lang.perl.beginners
Message-ID <[email protected]>
* [email protected] <[email protected]> [22-11/20=Su 09:58 +0100]:
> I have a large file which has millions of lines.  They are text
> only lines.  If I have to change one line in the file, what's the
> efficient way?  I don't want to slurp the whole file into memory,
> change that line and write the full content back to disk again.

See the built-in functions sysopen, sysread, sysseek, syswrite.

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.