Exporter-Simple
view release on metacpan or search on metacpan
declaration was still necessary. Now I've reworked things so that
scalars, arrays and hashes get exported during BEGIN, but subroutines
get exported during INIT. It's not that simple though; read the source
to find out what kinds of hoops I had to jump through.
1.00 Sat Aug 31 18:38:27 CEST 2002
- TOTAL rewrite. Now that perl 5.8.0 is out, we have attributes
on 'our' variables. This means we don't have to clumsily export
globals, nor do we need to export lexicals (which was a weird
concept anyway). So there's no need for Filter::Simple and
PadWalker or any of the ugly workarounds that introduced. And
once it occurred to me that Exporter::Simple could just subclass
Exporter, and modules wanting to use Exporter::Simple could
subclass it, things were a lot easier. Now using the attributes
will populate the exporting package's @EXPORT, @EXPORT_OK
and %EXPORT_TAGS direcltly, and we let Exporter have its way
(with a few slight modifications).
It's beautiful. And more proof of the old adage "if it's too
complicated, there's probably something wrong with it" - when
it's right, it's rather simple and elegant and things easily
( run in 0.712 second using v1.01-cache-2.11-cpan-05444aca049 )