See perlrun about the -i switch. Basically it leaves a backup file.
In reply to Re: replacement code doubt by Corion in thread replacement code doubt by boby