DBI allows access to databases from perl.
Based on the types of files you are changing, I would recommend considering putting the changeable text into the database and then having the server dynamically load the text from the database when pages are requested and integrate the text into the web pages. This way, the changeable text is stored in only one place and editing that place changes it everywhere for the next page hit.
DBI can be used for this. Also, setting up some templates and using Cold Fusion can do these sorts of things as far as I know.