local $^I = '.bak'; while (<>) { s/this/that/g; print; } [download]
In reply to Re: Re: simple substitution by jweed in thread simple substitution by wolverina