in reply to Re: In-place file manipulation
in thread In-place file manipulation

I use this one all the time. A quick example of broquaint's suggested technique (from the command line), to replace all capitalization permutations of the word 'perl' to 'Perl' in file perl.pl, and store the original in perl.pl.bak:

perl -pi.bak -e 's/\bperl\b/Perl/gi' perl.pl