相关疑难解决方法(0)

如何将命令行参数传递给Perl程序?

我正在研究Perl脚本.如何将命令行参数传递给它?

例:

script.pl "string1" "string2"
Run Code Online (Sandbox Code Playgroud)

perl command-line

135
推荐指数
8
解决办法
34万
查看次数

如何让我的Perl脚本像Windows上的普通程序一样?

我希望我的Perl脚本的行为与任何其他可执行文件(*.exe文件)一样.

  • 当我双击时,myscript.pl我希望它执行而不是在文本编辑器中打开.
  • 我想跑myscript.pl而不是perl myscript.pl.
  • 我真的想跑myscript而不是myscript.pl.
  • 我想跑program | myscript而不是program | perl myscript.pl.
  • 我希望能够通过拖放操作来运行我的脚本.

您必须在Windows上进行许多更改才能使所有这些工作正常进行.用户通常偶然发现的东西,工作,一次一个; 让他们感到困惑,他们是否犯了错误,Perl中存在错误,Windows中存在错误,或者他们想要的行为是不可能的.这个问题旨在提供一个单一的参考点,使一切工作在前面; 理想情况下,在这些问题发生之前.

相关问题:

windows perl

37
推荐指数
2
解决办法
3万
查看次数

如何修复加载 gdata 包时 Perl 警告消息?

我已经更新了Strawberry Perl 64-bit 5.30.2001gdata。现在,加载时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)

windows perl xls r gdata

5
推荐指数
1
解决办法
1336
查看次数

标签 统计

perl ×3

windows ×2

command-line ×1

gdata ×1

r ×1

xls ×1