question concerning module architecture

2009-08-09 Thread Geoffrey Leach
I'm working on updates for Getopt::Auto. In the original, there's this block: END { if (exists main::default) { main::default() } } I understand how this works, but, given that its not documented in the Getopt::Auto POD, why would main::default() exist? Secondly, Getopt::Auto looks for

Re: question concerning module architecture

2009-08-09 Thread Chris Dolan
On Aug 9, 2009, at 3:03 PM, Geoffrey Leach wrote: Is here any way for a module to discover the package that requires it? You can invoke caller() within Getopts::Auto::import Chris