kcarpenter@soleo.com has asked for the wisdom of the Perl Monks concerning the following question:
I need to read multiple word command line arguemnts that are not quoted.
The number of words after the flag can vary with each execution of the script
Something like.
my_script.pl -a one -b two words -c three words here
and on the next itteration
my_script.pl -a two words -b oneword -c four words here now
Is there an easy way to do this ?
Thanks
The number of words after the flag can vary with each execution of the script
Something like.
my_script.pl -a one -b two words -c three words here
and on the next itteration
my_script.pl -a two words -b oneword -c four words here now
Is there an easy way to do this ?
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: easiest way to read multiple word command arguments
by toolic (Bishop) on Aug 15, 2013 at 16:15 UTC | |
Re: easiest way to read multiple word command arguments
by choroba (Cardinal) on Aug 15, 2013 at 16:06 UTC | |
Re: easiest way to read multiple word command arguments
by kennethk (Abbot) on Aug 15, 2013 at 19:12 UTC | |
Re: easiest way to read multiple word command arguments
by ramlight (Friar) on Aug 15, 2013 at 18:37 UTC | |
Re: easiest way to read multiple word command arguments
by mhearse (Chaplain) on Aug 15, 2013 at 18:20 UTC |
Back to
Seekers of Perl Wisdom