in reply to Replacing a string in a file

Hmm.. the simplest form is something like
$ perl -pi.bak -e's/foo/bar/' file1 file2 ..
Look for the documentation of the -p and -i switches in perldoc perlrun. In what context are you trying to do this?

Makeshifts last the longest.