如何使用 ActivePerl 运行 Perl 脚本? [英] How can I run a Perl script with ActivePerl?
问题描述
我最近在 Windows XP 上的 C:/Perl
中安装了 ActivePerl 5.12.2.1202.我是 Perl 脚本的新手.
I just recently installed ActivePerl 5.12.2.1202 on my Windows XP in C:/Perl
. I am new to Perl scripting.
我只想运行一个 Perl 程序,其中包含一个 print
语句,我将其保存在记事本中,名称为 ex.pl
.
I just want to run a Perl program which contains one print
statement, which I saved in Notepad with the name ex.pl
.
- 如何运行这个 Perl 程序?
- 我可以使用编辑器来输入记事本以外的 Perl 脚本吗?
- 如何使用 ActivePerl?
推荐答案
从命令提示符
start->run>cmd
(会出现命令提示符),写perl full_path_of_your_script
,喜欢
<代码>C:\>perl hello.pl#This 假设 perl 在你的 PATH 环境变量中.
start->run>cmd
(command prompt will appear), writeperl full_path_of_your_script
, like
C:\> perl hello.pl
#This assumes that perl is in your PATH environment variable.
有很多 Perl 编辑器,您可以用于像 DzSoft 这样的 Perl 脚本,Perl Expess、Komodo Edit 等,还可以查看 http://www.perlmonks.org/?node_id=169668 和 Perlfaq3- Windows Perl Editors 了解更多详情.
There are many Perl Editors, you can used for Perl scripts like DzSoft, Perl Expess, Komodo Edit etc and also see http://www.perlmonks.org/?node_id=169668 and Perlfaq3- Windows Perl Editors for more detail.
看看 http://docs.activestate.com/activeperl/5.12/,用于 ActivePerl 5.12 文档.
这篇关于如何使用 ActivePerl 运行 Perl 脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!