From: J�rgen Exner on
Michael Friendly <friendly(a)> wrote:
>I'm wondering if there is a perl script or a simpler way to accomplish
>the task of doing global search/replace in all files, possibly of
>specified file types in a file tree, where *only* the files that match
>the search string will be modified (because I need to preserve time
>stamps so that only truly modified files will be rsync'd with a server).

File::Find is your friend. In the wanted() function you can specify
whatever search criteria comes to your mind.