The bulk of your problems, I believe, lie in the apparent lack of any sub declaration in scope (at the time that Exporter does its work) - if there are subs declared in the module, they won't have been parsed until after the BEGIN block has run i.e. your use of Exporter in the BEGIN block is far too early in the compilation cycleThat isn't a problem. If you take a reference to a not-yet-defined subroutine (essentially what Exporter does), you implicitly are creating a forward declaration which will later be fully defined when the sub body is parsed.
In reply to Re^2: Perl complains of redefining undefined module export
by ysth
in thread Perl complains of redefining undefined module export
by WienIsset
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |