A big consideration will be to make sure that the CPAN library referenced by the old app includes only the library versions needed by that app, and do not reference ones provided by the CentOS installation. (The old app might well have done so.) Containerization is an excellent suggestion.