Selvakumar has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am using perlIDE. I don't know how to pass command line arguments in PERL IDE for my code. For this type of code i am using dos mode for others i am using perl IDE to run the perl code. Any possibilities to pass command line arg thru perl IDE?

Replies are listed 'Best First'.
Re: perlIDE command line arguments
by cdarke (Prior) on Jun 25, 2009 at 07:52 UTC
    I suggest you ask the perlIDE site this question. PerlIDE is a sourceforge project and is not directly connected with Perl itself (so far as I know).

    You may be confused by your use of the term "dos mode". I suspect that what you mean is "Console mode". The black window displayed when you run Perl on Windows is called a Console, since Perl is a Console application. It has nothing to do with DOS other than the fact that one black window looks much the same as any other.

    If you are using a graphics only application there are ways of supressing the console based on the Win32 API FreeConsole. I suggest you SuperSearch on that if that is what you need.
Re: perlIDE command line arguments
by Discipulus (Canon) on Jun 25, 2009 at 08:28 UTC
    on the PerlIDE program click window->output->console and then you have a start parameter textbox in which you can put perl-command-line-switches and argouments (-w arg1 arg2..)
Re: perlIDE command line arguments
by jrsimmon (Hermit) on Jun 25, 2009 at 16:57 UTC
    If by perl IDE you mean the Open Perl IDE project, then you can simply add your arguments to the text box labeled "Start parameter" that is available on the console tab (by default the console tab is the the left of the main window). This acts exactly as if you had typed the arguments after "perl myscript.pl" on a command line.
Re: perlIDE command line arguments
by Anonymous Monk on Jun 25, 2009 at 07:23 UTC
    What is perlIDE? Why don't you open a shell, and run "perl myfile.pl foo bar baz"?