小编Die*_*ers的帖子

请帮助执行基本的Perl代码

#!/usr/local/bin/perl
use warnings;
use strict;

print "Hello, world!\n";
Run Code Online (Sandbox Code Playgroud)

这是我保存为文件test.plcgi-bin.

这是代码,我用来在单独的html文档中运行脚本

 <html> 
 <head> 
 <title>A Very Basic Example of an HTML page created by the CGI</title> 
 </head> 
 <body> 
 <script type="text/javascript" src="http://csvlife.com/cgi-bin/test.pl"></script> 
 </body> 
 </html>
Run Code Online (Sandbox Code Playgroud)

我安装了Perl.模块.我在Hostgator面板中验证了程序路径.可能是什么问题?

perl

2
推荐指数
1
解决办法
208
查看次数

标签 统计

perl ×1