Page 1 of 1

PHP with Perl?

Posted: Mon May 19, 2003 8:09 am
by jiehuang001
I heard that PHP syntax is very similar as Perl. Is that true? If yes, can Perl function be called from PHP without modification? I have some Perl functions that need to be integrated into webpage. Can Perl also be used to write dynamic webpage? What is the requirement?

Thanks.

Jie Huang

Posted: Tue May 20, 2003 12:36 pm
by daven
PHP is similar to PERL, but they are not interchangeable. You can execute PERL functions from within PHP, via the shell_exec(), exec(), or backtick (`) operators.

You can use PERL to write dynamic webpages by employing either mod_perl or CGI functionality.