从命令行运行特定的perl脚本

从命令行运行特定的perl脚本,perl,command-line,github,command-prompt,Perl,Command Line,Github,Command Prompt,虽然没有太多编程经验,但我看到了一个大家都在谈论的speed Reader的开源代码,并认为在我自己的计算机上运行它会很酷 这些文件可在以下位置获得: 我想知道我应该在命令提示符中输入什么才能让程序运行。我的计算机上已经有了一个perl解释器。但我不知道如何让程序运行。抱歉,如果这是一个非常愚蠢的问题 我试过了 perl C:\speadread-master\speedread (and yes, it was on the C: drive) 我得到了一个错误: Use of encodi

虽然没有太多编程经验,但我看到了一个大家都在谈论的speed Reader的开源代码,并认为在我自己的计算机上运行它会很酷

这些文件可在以下位置获得:

我想知道我应该在命令提示符中输入什么才能让程序运行。我的计算机上已经有了一个perl解释器。但我不知道如何让程序运行。抱歉,如果这是一个非常愚蠢的问题

我试过了

perl C:\speadread-master\speedread (and yes, it was on the C: drive)
我得到了一个错误:

Use of encoding pragma is deprecated at C:\speadread-master\speedread line 39.
'stts' is not recognized as an internal or external command, operable program of batch file. 
←[31mc←[0←[K
'~' is not recognized as an internal or external command, operable program or batch file
我也尝试过(因为它出现在github上的GIF中)

我得到了一个错误:

Use of encoding pragma is deprecated at C:\speadread-master\speedread line 39.
'stts' is not recognized as an internal or external command, operable program of batch file. 
←[31mc←[0←[K
'~' is not recognized as an internal or external command, operable program or batch file
除了’s,wo指出了对Unix命令/显示的强烈依赖性,您还误解了head命令:

~/speedread$
是一个Unix,
使用~
引用您的
主页
目录(
Windows中的用户配置文件
)。你不应该打字

实际命令是:

head -n 21 tea.txt | ./speedread -w 250

您的git msysgit发行版()中有一个
head.exe
(unix命令的Windows版本
head
)。

从其
stty
用法来看,该程序似乎是特定于unix的–您不能在Windows上使用它。但除此之外,您第一次尝试执行脚本是正确的。