|
NAMEExtUtils::MakeMaker::Tutorial - Writing a module with MakeMakerSYNOPSISuse ExtUtils::MakeMaker; WriteMakefile( NAME => 'Your::Module', VERSION_FROM => 'lib/Your/Module.pm' ); DESCRIPTIONThis is a short tutorial on writing a simple module with MakeMaker. It's really not that hard.The MantraMakeMaker modules are installed using this simple mantraperl Makefile.PL make make test make install There are lots more commands and options, but the above will do it. The LayoutThe basic files in a module look something like this.Makefile.PL MANIFEST lib/Your/Module.pm That's all that's strictly necessary. There's additional files you might want: lib/Your/Other/Module.pm t/some_test.t t/some_other_test.t Changes README INSTALL MANIFEST.SKIP bin/some_program
SEE ALSOperlmodstyle gives stylistic help writing a module.perlnewmod gives more information about how to write a module. There are modules to help you through the process of writing a module: ExtUtils::ModuleMaker, Module::Starter, Minilla::Tutorial, Dist::Milla::Tutorial, Dist::Zilla::Starter
Visit the GSP FreeBSD Man Page Interface. |