How can I invoke a PHP script from Perl?

前端 未结 3 840
刺人心
刺人心 2021-01-12 18:40

How can I call a PHP script from a Perl script and get its output as a variable?

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 19:26

    The reverse of this question, but the same answer.

    Use backticks or the qx operator:

    $output = `/path/to/php my_script.php`;
    

提交回复
热议问题