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
Wed Apr 15 08:08:15 2009The RT System itself - Status changed from 'new' to 'open'
Wed Apr 15 08:08:19 2009kgalinsky [...] gmail.com - Taken
Sun Apr 19 08:38:15 2009kgalinsky [...] gmail.com - Correspondence added
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.
Sun Apr 19 08:38:17 2009kgalinsky [...] gmail.com - Status changed from 'open' to 'rejected'