Module::Installlib/Foo/Bar.pmpackage Foo::Bar; our $VERSION = '0.001'; 1; Makefile.PLuse strict; use inc::Module::Install; name('Foo-Bar'); all_from('lib/Foo/Bar.pm'); WriteAll; t/00_compile.tuse strict; use Test::More tests => 1; use_ok('Foo::Bar'); 参考 |
|