加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

perl – 如何使用我自己的模块导出模块列表?

发布时间:2020-12-16 06:21:00 所属栏目:大数据 来源:网络整理
导读:我想创建一个Base类,每次使用它时都会导出以下模块: use 5.018;use Data::Dumper;use Warning; #etc etc 类似的问题: (2017)Shortcut to import modules? (2016)Perl import into all my packages? (2015)How to load a bunch of perl modules into a perl
我想创建一个Base类,每次使用它时都会导出以下模块:

use 5.018;
use Data::Dumper;
use Warning; 
#etc etc

类似的问题:

>(2017)Shortcut to import modules?
>(2016)Perl import into all my packages?
>(2015)How to load a bunch of perl modules into a perl script
>(2013)Is there any way to “auto-use” certain modules everytime I write a script?
>(2012)How to include a file that contains all the required Perl module names?
>(2011)How to “use” multiple modules with one “use”?
>(2011)How to make “use My::defaults” with modern perl & utf8 defaults?
>(2011)Explanation how to works the “uni::perl” module – loading pragmas and other modules
>(2011)How to share the import of a large list of modules between many independent scripts?
>(2010)How do I group my package imports into a single custom package?
>(2009)Is there a way to “use” a single file that in turn uses multiple others in Perl?

解决方法

试用CPAN模块 ToolSet.

其他类似的CPAN模块:

>(2015)perl5i
>(2015)strictures
>(2015)Modern::Perl
>(2014)Import::Into
>(2012)uni::perl
>(2011)common::sense
>(2011)rig
>(2010)Acme::Very::Modern::Perl
>(2009)latest
>(2005)Toolkit
>(2001)Pollute::Persistent

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读