给perl安装asp模块,一张方法是CPAN安装,一种是常规安装
CPAN安装
#perl -MCPAN -e shell
cpan>; install CPAN
...
Installing the Apache::ASP bundle will automatically install all the modules
Apache::ASP is dependent on as well as Apache::ASP itself. If you have
trouble installing the bundle, then try installing the necessary modules one
at a time:
cpan>; install MLDBM
cpan>; install MLDBM::Sync
cpan>; install Digest::MD5
cpan>; install Apache::ASP
For extra/optional functionality in Apache::ASP 2.31 or greater, like
support for FormFill, XSLT, or SSI, you can install this bundle via CPAN:
cpan>; install Bundle::Apache::ASP::Extra
也可以用常规的方法安装asp模块
Otherwise, just copy ASP.pm to
$PERLLIB/site/Apache
>; perl Makefile.PL
>; make
>; make test
>; make install
安装完毕,进行测试
在htdocs里vi一个test.asp,内容如下
<!-- sample here -->;
<html>;
<body>;
For loop incrementing font size: <p>;
<% for(1..5) { %>;
<!-- iterated html text -->;
<font size="<%=$_%>;" >; Size = <%=$_%>; </font>; <br>;
<% } %>;
</body>;
</html>;
<!-- end sample here -->;
https://202.106.185.101/test.asp
大家可以到这里看看效果
good luck!
参考文档
https://www.apache-asp.org/install.html
https://cpan.org/modules/by-module/Apache/Apache-ASP-2.49.readme
https://perl.apache.org/docs/1.0/guide/getwet.html#Installing_mod_perl
https://www.freelamp.com/new/publish/1015481268/index_html