包括3块:
Perl for Win32 Build 316
Perl for ISAPI Build 316(如果要写CGI)
PerlScript Build 316(如果要写ASP)
文件都不大, 别搞错了运行平台就行了,接下来先安装 Perl for Win32下载的pw32i316是自解压文件, 解开后会自动执行一个批处理文件进行安装.
安装的界面是个命令行的交互程序, 全文记录如下...
This install script assumes that you have unpacked Perl for Win32 into the final intended destination directory.
Do you wish to proceed? [Y/n] y
perldir = C:\Perl
Wed Jul 22 15:08:04 1998
Installing Perl for Win32 into C:\Perl
Added key to HKEY_LOCAL_MACHINE\SOFTWARE\ActiveWare\Perl5 ..
Adding C:\Perl\bin to script path information
Adding C:\Perl\lib to library include path information Modify search path? [Y/n] y
Retrieving Path information from session manager Updated path information in session manager Associate .pl with Perl.exe? [Y/n]
Associating .pl extension with Perl.exe.
.pl=Perl
Perl=C:\Perl\bin\perl.exe %1 %*
If foo.pl is in the PATH, typing foo.pl at any command prompt will run it.
Add registry key to support standard I/O redirection in IIS? [Y/n]
Added Create Process With New Console value for IIS Perl 5.003 installation finished.
NOTE: The updated path information will not take effect until you log off and back on again. enjoy ;-)
: 弹出一个notepad窗口让你观看release.txt,看完后关闭这个窗口
按任意键继续...
perl安装后目录结构如下:
perl
+----bin 可执行文件 *.exe *.bat
|
+----docs 文档(html格式)
|
+----eg 例子
|
+----lib 库文件
docs是一定要看的, eg是开卷有益的, lib就先看看好了,不要乱动,接下来装个ISAPI扩展, 弄弄CGIplISi316.exe 也是个自解压文件, 运行后自动执行一批处理文件,过程记录如下:
Installing PerlIS
请按任意键继续 . . .
***** Wed Jul 22 16:00:58 1998
Installing PerlIS into C:\Perl\bin
Please choose a file extension to associate with PerlIS.dll.
Extension:
-->Association made with .pl
PerlIS installed.
opening release.txt...
: 看完 release.txt 后
请按任意键继续 . . .
: 完成了
我的机器上装的是IIS 4.0, 配置*.pl为cgi程序的操作如下:
打开要配置的站点(site)或目录(virtual directory)的属性对话框,在 home/virtual directory 板里选 Application Settings 的 Configuration...在 App Mappings 里用 Add 加入对 .pl 文件的解释器, Executable 选刚才安装在 c:\Perl\bin 里的 perlis.dll,由于不是ASP解释器, 所以不用 Script engine 选项.
that should be OK.
在刚才的hw.pl 头上加一行
print "content-type: text/html\n\n";
用浏览器试试看吧...我是一次成功的.接下来装个Perl Script, 弄弄ASPplSEi316.exe 也是个自解压文件, 运行后自动执行一批处理文件,过程记录如下:
Installing PerlScript
请按任意键继续 . . .
***** Wed Jul 22 16:32:15 1998
Installing PerlScript into C:\Perl\bin
PerlScript installed successfully
opening release.txt...
请按任意键继续 . . .
安装完成后 C:\Perl\bin 下多了一个 PerlSE.dll
另外有两个目录 aspSamples 和 IE3Samples 在 c:\perl 下
IE3Samples里的是在页面里用perl script的例子,马上就可以看了aspSamples 里的是在ASP里用perl script的例子,先加到IIS里也可以看了.