OK first as an aside if you want to do this on the command line look at -i and -p see perldoc
perlrun -i means edit the file in place and -p means loop over all the lines in the file soo:
perl -pi '.orig' -e 's/SPONGE/WIBBLE/' FILE
Will do the search and replace SPONGE for WIBBLE on file FILE, write the changes back, while saving the original file as FILE.orig. See
perlrun for more info.
UPDATE
Could you please try and name your
nodes with care. General Perl question will not help someone else looking for the same answer as you. It is a good question but a more carefully worded question would have really increased the value of the node.
--
Zigster