Skip to content
Sections
>> Trisquel >> 套件 >> aramo >> perl >> libimport-into-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: libimport-into-perl  ]

套件: libimport-into-perl (1.002005-1)

module for importing packages into other packages

Import::Into creates a global method import::into which you can call on any package to import it into another package. This is useful because there are many different ways to write exporters: some use Exporter, some use Sub::Exporter, some use Moose::Exporter, some use Exporter::Declare and some things are pragmas.

And 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. Import::Into can be used to import packages into other packages without having to deal with the specific details of every exporting approach.

其他與 libimport-into-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: libmodule-runtime-perl
    Perl module for runtime module handling
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下載 libimport-into-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 10.8 kB27 kB [文件列表]