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>
In reply to Re: In place editing of text files
by sm@sh
in thread In place editing of text files
by jevaly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |