getopt
getopt ('switches'[, \%opts])
- switches is a string of the command-line options that take arguments. For each option,
getoptsets$opt_x(wherexis the switch) to the value entered as an argument. If %opts is specified, it is a reference to a hash in whichgetoptsets the key to the name of the switch and the value to the argument (and the$opt_variables are not set).