-
-
23 Aug 2006 17:18:13 UTC
- Distribution: Module-Install
- Module version: 0.64
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (75)
- Testers (52 / 3 / 0)
- Kwalitee
Bus factor: 4- License: perl_5
- Perl: v5.4.0
- Activity
24 month- Tools
- Download (78.56KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- YAML
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Module::Install::Admin - Author-side manager for Module::Install
SYNOPSIS
In a Module::Install extension module:
sub extension_method { my $self = shift; $self->admin->some_method(@args); }
As an one-liner:
% perl -MModule::Install::Admin -e'&some_method(@args);'
The two snippets above are really shorthands for
$some_obj->some_method(@args)
where
$some_obj
is the singleton object of a class under theModule::Install::Admin::*
namespace that provides the methodsome_method
. See "METHODS" for a list of built-in methods.DESCRIPTION
This module implements the internal mechanism for initializing, including and managing extensions, and should only be of interest to extension developers; it is never included under a distribution's inc/ directory, nor are any of the Module::Install::Admin::* extensions.
For normal usage of Module::Install, please see Module::Install and Module::Install-Cookbook instead.
Bootstrapping
When someone runs a Makefile.PL that has
use inc::Module::Install
, and there is no inc/ in the current directory, Module::Install will load this module bootstrap itself, through the steps below:First, Module/Install.pm is POD-stripped and copied from
@INC
to inc/. This should only happen on the author's side, never on the end-user side.Reload inc/Module/Install.pm if the current file is somewhere else. This ensures that the included version of inc/Module/Install.pm is always preferred over the installed version.
Look at inc/Module/Install/*.pm and load all of them.
Set up a
main::AUTOLOAD
function to delegate missing function calls toModule::Install::Admin::load
-- again, this should only happen at the author's side.Provide a
Module::Install::purge_self
function for removing included files under inc/.
METHODS
SEE ALSO
AUTHORS
Audrey Tang <autrijus@autrijus.org>
COPYRIGHT
Copyright 2003, 2004 by Audrey Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Module::Install, copy and paste the appropriate command in to your terminal.
cpanm Module::Install
perl -MCPAN -e shell install Module::Install
For more information on module installation, please visit the detailed CPAN module installation guide.