CGI.pm changes its behavior when executing under mod_perl, and also sometimes saves its own copy of the query state and resumes that state on re-entry. Previous alphas of PHPerl only partially accounted for this special behavior.
Note that PHP's ``virtual'' function has the same problems with CGI.pm. PHPerl.pm now provides the only correct interface to execute Perl CGIs from within PHP.
The first complete distribution package of PHPerl has just become available for download. This is an alpha release, so expect a few glitches; bug reports are encouraged.
PHPerl links a Perl interpreter into the PHP3/4 module for Apache. It provides a PHP API for managing Perl interpreters and evaluating Perl expressions, plus a package of Perl subroutines to assist in executing Perl packages in PHP context.... read more