change one line in a large fine

[email protected]
Newsgroups gmane.comp.lang.perl.beginners
Message-ID <trinity-d377137f-f8a8-4a8b-91f8-27e32b8e1853-1668934709073@3c-app-gmx-bs51>
Hello perl world,

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.

Thanks.

-- 
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.