将命令行参数传递给使用Padre运行的Perl程序 [英] Passing command line arguments to a Perl program run using Padre

查看:148
本文介绍了将命令行参数传递给使用Padre运行的Perl程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过Padre菜单(运行->运行脚本")将命令行参数传递给正在运行的Perl程序?

Is there a way to pass command line arguments to a Perl program you are running from the Padre menu ("Run->Run Script")?

推荐答案

在工具"->首选项"->语言-Perl5"下,设置脚本参数"并保存.

Under Tools->Preferences->"Language - Perl5", set "Script arguments" and save.

或在工具"->首选项"->高级"下,请参阅"run_script_args_default".设置一个值,然后保存.

Or under Tools->Preferences->Advanced, see "run_script_args_default". Set a value, and save.

无论哪种方式,他们都做同样的事情.您还可以使用解释器参数"字段为Perl解释器设置标志.

Either way they do the same thing. You can also use the "Interpreter Arguments" field to set flags for the Perl interpreter.

这篇关于将命令行参数传递给使用Padre运行的Perl程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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