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
In reply to Re: Re: In-place file manipulation
by perlguy
in thread In-place file manipulation
by ibanix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |