我希望我的Perl脚本的行为与任何其他可执行文件(*.exe文件)一样.
myscript.pl
我希望它执行而不是在文本编辑器中打开.myscript.pl
而不是perl myscript.pl
.myscript
而不是myscript.pl
.program | myscript
而不是program | perl myscript.pl
.您必须在Windows上进行许多更改才能使所有这些工作正常进行.用户通常偶然发现的东西,不工作,一次一个; 让他们感到困惑,他们是否犯了错误,Perl中存在错误,Windows中存在错误,或者他们想要的行为是不可能的.这个问题旨在提供一个单一的参考点,使一切工作在前面; 理想情况下,在这些问题发生之前.
相关问题:
我已经更新了Strawberry Perl 64-bit 5.30.2001
包gdata
。现在,加载时library(gdata)
我总是收到此警告消息,这些消息似乎与 Perl 相关。
suppressPackageStartupMessages(library(gdata))
# Warning messages:
# 1: In system(cmd, intern = intern, wait = wait | intern, show.output.on.console = wait, :
# running command 'C:\Windows\system32\cmd.exe /c ftype perl' had status 2
# 2: In system(cmd, intern = intern, wait = wait | intern, show.output.on.console = wait, :
# running command 'C:\Windows\system32\cmd.exe /c ftype perl' had status 2
Run Code Online (Sandbox Code Playgroud)
然而,read.xls
我需要的功能似乎运行良好,只是每次使用时都会重复出现警告。
read.xls("http://file-examples-com.github.io/uploads/2017/02/file_example_XLS_10.xls")
# trying URL 'http://file-examples-com.github.io/uploads/2017/02/file_example_XLS_10.xls'
# Content type 'application/vnd.ms-excel' …
Run Code Online (Sandbox Code Playgroud)