You can turn off backup feature but it is dangerous or rather not a good idea.
code below is untested
{ local $^I = ".bak"; local *ARGV; @ARGV = "mydata.txt"; while (<>) { s/idTag/newTag/g; print; } }
In reply to Re: inline file modification
by sk
in thread inline file modification
by Woodchuck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |