1Module::Package::TutoriUasle(r3)Contributed Perl DocumenMtoadtuiloen::Package::Tutorial(3)
2
3
4

NAME

6       Module::Package::Tutorial - A Hands on Guide
7

INTRODUCTION

9       Welcome to Module::Package. This tutorial is for people who want to
10       package modules for CPAN, who want to make sure they are doing it the
11       best they can, but who also want to spend more time working on their
12       code than on becoming an expert packager. This tutorial is also for
13       people who want to take their time and effort spent on packaging, and
14       share new ideas and tricks with others.
15
16       I'll start by taking a typical Makefile.PL written with Module::Install
17       and show you how to turn this into various Module::Package
18       configurations, eventually ending up with a single line Makefile.PL.
19       Then I'll show you the ins and outs of making your own Module::Install
20       plugin module to handle your common needs.
21

Makefile.PL 2.0

23       I won't start with 1.0. Those days are long past. Here's what a typical
24       Makefile.PL looks like these days.
25
26           use strict;
27           use inc::Module::Install;
28
29           name            'Foo-Bar';
30           all_from        'lib/Foo/Bar.pm';
31           build_requires  'Test::More';
32
33           auto_include_deps;
34           sign;
35
36           WriteAll;
37
38       ... This doc is a work in progress. Stay tuned ...
39
40       Here's the the final version:
41
42           use Module::Package 'All:good';
43

AUTHOR

45       Ingy döt Net <ingy@cpan.org>
46
48       Copyright (c) 2011. Ingy döt Net.
49
50       This program is free software; you can redistribute it and/or modify it
51       under the same terms as Perl itself.
52
53       See http://www.perl.com/perl/misc/Artistic.html
54
55
56
57perl v5.34.0                      2021-07-22      Module::Package::Tutorial(3)
Impressum