I want to parse a list of arguments in a perl script, for example i have this situation :
script.pl -h 127.0.0.1 -u user -p pass arg1 arg2 arg3
How can i do for parse the list of argument that aren’t option in an array, and the option parameter in scalar value ?
Thanks.
Well, if they are the only things on the command line that aren’t given as options, then they should still be in
@ARGV. So just use@ARGV.see
Getopt::Long