This PR resolves #9 - [Avoid hijacking GoL legacy default dests].
It was much easier than initially feared: 2 lines :-)
Because, as turns out, there was an existing GoL mechanism ($Getopt::Long::caller).
In addition to the resolving #9, this change should also benefit:
scenarios where GLM itself is wrapped (as long as they follow the same GoL mechanism)
when GLM needs to figure out those "default destinations" (just like it should be able to do for hash storage) -- touching upon our earlier discussion.
Afaics, the only potential concern with the approach taken by this change is the word "invisible" below :
package Getopt::Long;
...
# Official invisible variables.
use vars qw($genprefix $caller $gnu_compat $auto_help $auto_version $longprefix);
...
But in any case, GLM already makes use of at least two other invisible variables in there ( $auto_help and $auto_version), why not another? -- especially if it is marked "# Official", right? :-)
This PR resolves #9 - [Avoid hijacking GoL legacy default dests].
It was much easier than initially feared: 2 lines :-)
Because, as turns out, there was an existing GoL mechanism (
$Getopt::Long::caller
).In addition to the resolving #9, this change should also benefit:
Afaics, the only potential concern with the approach taken by this change is the word "invisible" below :
But in any case, GLM already makes use of at least two other invisible variables in there (
$auto_help
and$auto_version
), why not another? -- especially if it is marked "# Official", right? :-)