in reply to editing a file

yep there is
perl -pi -e "s/something_regexp/something_else/g;" <filenames>
at the command line will do the job Using the above with perl -pi.bak .... will put the original file into a backup copy called <orig>.bak