I also tend toward the use of a defined set of Perl modules that can be "required" as needed. One possible advantage to this is that you will quite naturally get "git" version control which will help you to track changes to the regex libraries over time. This would help very considerably in the inevitable-of-course debugging of the thing.