perl search and replace in a file

Kyle Waters unum at unum5.org
Fri May 8 15:06:57 MDT 2009


So a while back someone posted something like this to the list(or 
another list like this one...)


perl -pi -e 's/search/replace/g' *.text

Now I would like to do what this is doing but from with in a perl 
script. It seems wrong to use ticks to drop out the command line and run 
perl from with in perl. What is the correct thing to do?

Kyle





More information about the PLUG mailing list