如何从PHP调用Perl脚本? [英] How can I call a Perl script from PHP?

查看:154
本文介绍了如何从PHP调用Perl脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对了解我们可以在PHP中调用/运行Perl脚本的方式很感兴趣.

I am interested in knowing the ways we can call/run Perl scripts in PHP.

推荐答案

您可以在Php代码中使用简单的Php Perl扩展名.这将使您能够执行代码和Perl变量,函数以及实例化对象.

You can use a simple Php Perl extension within the Php code. This will allow you to execute code and Perl variables,functions and instantiate objects.

$perl = new Perl();
$perl->require("test1.pl");

这篇关于如何从PHP调用Perl脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆