in reply to Perl module for automating the modification of config files?

This problem space is called configuration management and there are a number of tools being used for this e.g. Ansible, Salt, Puppet etc.

Rex is the only one implemented in Perl that I know of (not sure how much that matters though).