perlpadre

Passing command line arguments to a Perl program run using Padre


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


Solution

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

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

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