1Module::Install::Admin(U3s)er Contributed Perl DocumentatMioodnule::Install::Admin(3)
2
3
4
6 Module::Install::Admin - Author-side manager for Module::Install
7
9 In a Module::Install extension module:
10
11 sub extension_method {
12 my $self = shift;
13 $self->admin->some_method(@args);
14 }
15
16 As an one-liner:
17
18 % perl "-MModule::Install::Admin" -e'&some_method(@args);'
19
20 The two snippets above are really shorthands for
21
22 $some_obj->some_method(@args)
23
24 where $some_obj is the singleton object of a class under the
25 "Module::Install::Admin::*" namespace that provides the method
26 "some_method". See "METHODS" for a list of built-in methods.
27
29 This module implements the internal mechanism for initializing,
30 including and managing extensions, and should only be of interest to
31 extension developers; it is never included under a distribution's inc/
32 directory, nor are any of the Module::Install::Admin::* extensions.
33
34 For normal usage of Module::Install, please see Module::Install and
35 "COOKBOOK / EXAMPLES" in Module::Install instead.
36
37 Bootstrapping
38 When someone runs a Makefile.PL that has "use inc::Module::Install",
39 and there is no inc/ in the current directory, Module::Install will
40 load this module bootstrap itself, through the steps below:
41
42 · First, Module/Install.pm is POD-stripped and copied from @INC to
43 inc/. This should only happen on the author's side, never on the
44 end-user side.
45
46 · Reload inc/Module/Install.pm if the current file is somewhere else.
47 This ensures that the included version of inc/Module/Install.pm is
48 always preferred over the installed version.
49
50 · Look at inc/Module/Install/*.pm and load all of them.
51
52 · Set up a "main::AUTOLOAD" function to delegate missing function
53 calls to "Module::Install::Admin::load" -- again, this should only
54 happen at the author's side.
55
56 · Provide a "Module::Install::purge_self" function for removing
57 included files under inc/.
58
61 Module::Install
62
64 Audrey Tang <autrijus@autrijus.org>
65
67 Copyright 2003, 2004 by Audrey Tang <autrijus@autrijus.org>.
68
69 This program is free software; you can redistribute it and/or modify it
70 under the same terms as Perl itself.
71
72 See <http://www.perl.com/perl/misc/Artistic.html>
73
74
75
76perl v5.30.1 2020-01-30 Module::Install::Admin(3)