in reply to Parsing options with Getopt & Dispatch Table
For example, using the -d switch on your command line fills the hash with the following after the getopt call:
You then overwrite the hash entirely.$VAR1 = { 'd' => 1 };
I don't think Getopt::Std works the way you want it to. Perhaps Getopt::Long does (User defined subroutines to handle options).
|
|---|