如何使用 ActivePerl 运行 Perl 脚本? [英] How can I run a Perl script with ActivePerl?

查看:47
本文介绍了如何使用 ActivePerl 运行 Perl 脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在 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.

  1. 如何运行这个 Perl 程序?
  2. 我可以使用编辑器来输入记事本以外的 Perl 脚本吗?
  3. 如何使用 ActivePerl?

推荐答案

  • 命令提示符

    start->run>cmd(会出现命令提示符),写perl full_path_of_your_script,喜欢
    <代码>C:\>perl hello.pl #This 假设 perl 在你的 PATH 环境变量中.

    start->run>cmd (command prompt will appear), write perl full_path_of_your_script, like
    C:\> perl hello.pl #This assumes that perl is in your PATH environment variable.

    有很多 Perl 编辑器,您可以用于像 DzSoft 这样的 Perl 脚本,Perl ExpessKomodo Edit 等,还可以查看 http://www.perlmonks.org/?node_id=169668Perlfaq3- 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆