in reply to Calling a function in regex substitution

Just curious but is this something that could be handled by an ini style config file and a module like Config::Tiny ?

"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
  --Ralph Waldo Emerson