Skip Menu |

This queue is for tickets about the Getopt-Euclid CPAN distribution.

Report information
The Basics
Id: 35154
Status: rejected
Priority: 0/
Queue: Getopt-Euclid

People
Owner: kgalinsky [...] gmail.com
Requestors: bitcard_ok [...] alvar.a-blast.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: v0.2.0
Fixed in: (no value)



Subject: minimal_keys does not work when Pod is in a module
Hi, when the Pod is inside a module, the minimal_keys option is ignored. Ciao Alvar
From: bitcard_ok [...] alvar.a-blast.org
Hi, On Do. 17. Apr. 2008, 11:49:54, alvar-f wrote: Show quoted text
> when the Pod is inside a module, the minimal_keys option is ignored.
it works, when doing the following in the script: use MyModule::WithPod qw(:minimal_keys); Ciao Alvar
Hi Alvar, Can I close this ticket? It seems like you were trying to do the following: ---MyModule.pm package MyModule; use Getopt::Euclid qw(:minimal_keys); =head1 OPTIONS =over =item [-]-o[ption] <o> =back =cut 1; ---my_script.pl use MyModule; print $ARGV{option}; # DOESN'T WORK!!! --- I should let Damian comment on this, but IMHO that is the proper behavior. As you have discovered, what you should do is: ---MyModule.pm package MyModule; use Getopt::Euclid; ... ---my_script.pl use MyModule qw(:minimal_keys); ... --- Anyway, I'll leave this ticket open for a few days before closing it. If you feel that module should be able to specify how Getopt::Euclid loads the options specified in the module, I'll see about setting this to a feature request. Best, -Kevin
This is not a bug. Have made note that one potential feature request is to allow modules to specify how the options in their pod is exported.