Jul 14, 2010, 2:06 AM
Post #2 of 3
(1) See the -i switch (perldoc perlrun), but it does not exactly fit your requirments (under the hood, it does make a new file, though you won't notice it).
Re: [tej.87g] Modifying .txt file
[In reply to]
(2) If you *know* what you are doing (for example, because though you are a beginner in Perl, you have experience in C), you can open the file using '+<' as open mode, and use sysread, syswrite, sysseek to process the file. Of course you have to take care about line endings by yourself.