Perl 未在 Windows 10 中运行 [英] Perl not running in Windows 10

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

问题描述

我刚刚在我的 64 位笔记本电脑上下载了适用于 Windows 10 的 ActivePerl,但是当我进入命令提示符时, perl -v 失败,除非目录是 C:Perl64in 在这种情况下它告诉我我有Perl 5.20.2 版权所有 Larry Ullman 等,但是如果我尝试在任何地方打开 perl 文件,什么都不会发生,如果我运行 perl.exe,它只会向我显示一个带有闪烁栏的命令窗口,并且当我尝试运行 .Eclipse 中的 pl 程序它可以预见地告诉我,因为 perl-v 失败了它不会运行.

I've just downloaded ActivePerl for Windows 10 on my 64 bit laptop, but when I go to the command prompt, perl -v fails unless the directory is C:Perl64in in which case it tells me that I have Perl 5.20.2 Copyright Larry Ullman etc, but if I try and open perl files anywhere, nothing happens, if I run perl.exe it just shows me a command window with a flashing bar and nothing happens, and when I try and run .pl programs in Eclipse it tells me predictably that because perl-v failed it won't run.

如何让 .pl 文件运行?

What can I do to get .pl files running?

推荐答案

您必须在 .pl 文件扩展名和 Perl 运行时之间创建文件关联.

You must create a file association between the .pl file extension and the Perl runtime.

在命令提示符下键入以下内容.

At a command prompt type the following.

assoc .pl=PerlScript
ftype PerlScript=c:perlinperl.exe %1 %*

选择 perl.exe 或 wperl.exe,具体取决于您获得可见命令窗口的需要.

Choose perl.exe or wperl.exe, depending on your need to get a visible command window.

这篇关于Perl 未在 Windows 10 中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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