Wrap the command line parameters in quotes (or otherwise escape the spaces), so they do not cause the text to be seen as multiple arguments:
myprog.pl -h <host> -d "DD/MM/YYYY HH:MM:SS" -e "DD/MM/YYYY HH:MM:SS"
--
Tommy
Too stupid to live.
Too stubborn to die.
In reply to Re: Using multiple args per switch with Getopts::Std
by tommyw
in thread Using multiple args per switch with Getopts::Std
by blink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |