This is a very handy command line use of perl. You basically execute the s// function of perl on a handful of files to do a global search and replace. Just run this from the command line and indicate what files you'd like to run this against. The .bak indicates the extension for original files backed up.
perl -pi.bak -e "s/search/replace/g" *