Hi, Often I get questions like 'can I get access to XXX internal property of Getopt::Long' or 'can I get a list of all options' and things like that. So I will try to open the Getopt::Long internals via an API.
Currently, you can associate an anonymous sub (code reference) to an option, so that the sub will be called when the option is handled. This sub gets two arguments: the name of the option, and the value it should get (actually, when the option is hash-typed, it will get three arguments, but that is not relevant for this discussion). I intend to change the first argument to an object. This will allow all kinds of extensions in a flexible manner. For backward compatibility, the object will stringify to the name of the option. My question to you: what would you like to be able to do with this API? -- Johan
