Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What do I need to code to run my Perl Script from a command prompt like this:
perl myprogram.pl -i "C:\temp\inputfile.txt" -o "C:\temp\myoutput.csv" + -s "C:\temp\myoutput.stat"
Where the -i is the input file (required) and the -o is the output file location for a csv (required) and the -s is the output file for a .stat file (not required). I would like to be able to run all three or just two of these in one command line. I already have the code for the program but need to fiure out how to implement the arguments so that they can run in command line. Thank you
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Enter Filename
by NetWallah (Canon) on Jul 10, 2012 at 02:30 UTC | |
Re: Enter Filename
by monsoon (Pilgrim) on Jul 10, 2012 at 01:41 UTC | |
Re: Enter Filename
by aitap (Curate) on Jul 10, 2012 at 07:42 UTC |
Back to
Seekers of Perl Wisdom