#!/usr/local/bin/perl
use warnings;
use strict;
print "Hello, world!\n";
Run Code Online (Sandbox Code Playgroud)
这是我保存为文件test.pl在cgi-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 ×1