in reply to Re: modifying a line in a file with some restrictions
in thread modifying a line in a file with some restrictions
attempting to slurp the entire file ($/="")No, he's reading it in paragraph mode. See perlvar. Update: That is, of course, he would be reading it in paragraph mode if he had opened it for reading.
Replacing everything in the file (if the file ends with a newline)No, he is only replacing the first line of the paragraph.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: modifying a line in a file with some restrictions
by BrowserUk (Patriarch) on Jan 14, 2003 at 09:31 UTC | |
by Aristotle (Chancellor) on Jan 14, 2003 at 09:53 UTC | |
by BrowserUk (Patriarch) on Jan 14, 2003 at 10:12 UTC | |
by Aristotle (Chancellor) on Jan 14, 2003 at 10:26 UTC |