Well, it won't be exactly the same architecture obviuosly. But it can be similar. You'll have to install and configure mod_perl. The feature you'll want to use is ModPerl::Registry which allows you to run your Perl program as if it were a CGI program. You'll need to make a few changes in the script itself:
in reply to Perl, PHP mod_perl
- Have some other logic for passing the command line options. If they should be dynamic, use a query string or something. If they should be static, have them come from config variables in your Apache config
- You'll have to generate the proper response headers for "CGI" output. Now you're presumably doing it in the PHP script, so you have to do that in Perl instead.
- Likewise with whatever cosmetic changes you're doing.