如何在不键入“perl"的情况下从 Cmd 运行 Perl 脚本?在脚本路径前面? [英] How Do I Run a Perl Script from Cmd without typing "perl" in front of the script path?

查看:30
本文介绍了如何在不键入“perl"的情况下从 Cmd 运行 Perl 脚本?在脚本路径前面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如perl C:\Projects\trunk\PcApps\BaseCamp\Test\smoketest.pl C:\Projects\trunk\PcApps\BaseCamp\Test\log.txt

没有perl.

推荐答案

将 .pl 扩展名分配给 perl 解释器.这取决于您的 Windows 版本如何执行此操作.

Assign the .pl extension to the perl interpreter. It depends on your Windows version how you do that.

根据您使用的 perl 安装程序,它也可能为您提供自动执行此操作的选项.

Depending on the perl installer you are using it might also provide you with an option to do so automatically.

这篇关于如何在不键入“perl"的情况下从 Cmd 运行 Perl 脚本?在脚本路径前面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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