in reply to mod_perl advice required

The book mod_perl Developer's Cookbook is a good reference to get if you do much mod_perl work. Here is what they suggest about migrating CGI scripts.

You can quickly mode that old Perl CGI script to mod_perl by using the Apache::PerlRun module. The performance benefits are good but not outstanding.

The difference between Apache::PerlRun and Apache::Registry is that the former scrubs the namespace between runs.