Path to this page:
./
devel/p5-Import-Into,
Perl5 module to import packages into other packages
Branch: pkgsrc-2014Q2,
Version: 1.002000nb1,
Package name: p5-Import-Into-1.002000nb1,
Maintainer: pkgsrc-usersWriting exporters is a pain. Some use Exporter, some use Sub::Exporter,
some use Moose::Exporter, some use Exporter::Declare ... and some things
are pragmas.
If you want to re-export other things, you have to know which is which.
Exporter subclasses provide export_to_level, but if they overrode their
import method all bets are off. Sub::Exporter provides an into parameter
but figuring out something used it isn't trivial. Pragmas need to have
their import method called directly since they affect the current unit
of compilation.
It's ... annoying.
However, there is an approach that actually works for all of these types.
Required to run:[
lang/perl5]
Master sites: (Expand)
SHA1: d897e14ac05efd1d270c1b74ed53b627a5000688
RMD160: 41d8cf1f0b16933ef5c4779e92ac7fe393f48a1f
Filesize: 6.331 KB
Version history: (Expand)
- (2014-07-11) Updated to version: p5-Import-Into-1.002000nb1
- (2014-07-02) Package added to pkgsrc.se, version p5-Import-Into-1.002000 (created)