in reply to In place editing of text files
that said, I see Tie::File mentioned here which looks like a better solution for my case.# replace all occurrences in the file edit_file { s/foo/bar/gs } myfile.txt> # replace occurrences a line at a time edit_file_lines { s/foo/bar/g } myfile.txt>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: In place editing of text files
by choroba (Cardinal) on Jul 23, 2016 at 07:49 UTC |