Perl从命令行执行问题 [英] Perl execution from command line question

查看:140
本文介绍了Perl从命令行执行问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我上周在我的WinXP上用草莓Perl取代了ActivePerl。

I replaced ActivePerl with Strawberry Perl on my WinXP last week.

我发现我必须用 perl myperl命令运行我的Perl脚本.pl ;否则我只需要运行 myperl.pl ,然后再安装草莓。我如何只能像以前一样运行 myperl.pl

I found I must run my Perl script with the command of perl myperl.pl; otherwise I only need run myperl.pl before install Strawberry. How can I only run myperl.pl as before?

我检查了我的环境配置如下。

I checked my environment configuration as below.


C:\> Path

C:\Program Files\ActiveState Komodo Edit
5\;C:\Perl\site\bin;C:\Perl\bin;C:\Perl\bin\;C:\Program Files\CodeSynthesis
XSD 3.2\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft
SQL Server\90\Tools\binn\;C:\Program Files\Common Files\Thunder Network\KanKan
\Codecs;C:\strawberry\c\bin;C:\strawberry\perl\bin`


草莓Perl路径已在安装成功后列在路径值中。

Strawberry Perl path already listed in the Path value after install successfully.

我错过了什么?感谢您的建议。

Anything I missed? Thank you for your suggestion.

推荐答案

尝试从命令提示符:

assoc .pl=PerlScript
ftype PerlScript=c:\strawberry\bin\perl.exe %1 %*

-
kmx

-- kmx

这篇关于Perl从命令行执行问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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