如何导出带有我自己的模块的模块列表? [英] How can I export a list of modules with my own module?

查看:106
本文介绍了如何导出带有我自己的模块的模块列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个基类,每次使用它时都会导出以下模块:

I want to create a Base class that exports the following modules everytime I use it:

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模块工具集

其他类似的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

这篇关于如何导出带有我自己的模块的模块列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆