™.. Module::Build::API - Online Linux Manual PageSection : 3pm
Updated : 2017-03-22
Source : perl v5.10.1
Note : Perl Programmers Reference Guide
NAMEModule::Build::API − API Reference for Module Authors
DESCRIPTIONI list here some of the most important methods in \*(C`Module::Build\*(C'\fR. Normally you won't need to deal with these methods unless you want to subclass \*(C`Module::Build\*(C'\fR. But since one of the reasons I created this module in the first place was so that subclassing is possible (and easy), I will certainly write more docs as the interface stabilizes.
CONSTRUCTORScurrent() [version 0.20] This method returns a reasonable facsimile of the currently-executing \*(C`Module::Build\*(C'\fR object representing the current build. You can use this object to query its ‟notes()” method, inquire about installed modules, and so on. This is a great way to share information between different parts of your build process. For instance, you can ask the user a question during \*(C`perl Build.PL\*(C'\fR, then use their answer during a regression test: # In Build.PL:
my $color = $build−>prompt("What is your favorite color?");
$build−>notes(color => $color);
# In t/colortest.t:
use Module::Build;
my $build = Module::Build−>current;
my $color = $build−>notes('color');
...
The way the \*(C`current()\*(C'\fR method is currently implemented, there may be slight differences between the $build object in Build.PL and the one in \*(C`t/colortest.t\*(C'\fR. It is our goal to minimize these differences in future releases of Module::Build, so please report any anomalies you find. One important caveat: in its current implementation, \*(C`current()\*(C'\fR will NOT work correctly if you have changed out of the directory that \*(C`Module::Build\*(C'\fR was invoked from. new() [version 0.03] Creates a new Module::Build object. Arguments to the new() method are listed below. Most arguments are optional, but you must provide either the ‟module_name” argument, or ‟dist_name” and one of ‟dist_version” or ‟dist_version_from”. In other words, you must provide enough information to determine both a distribution name and version. add_to_cleanup [version 0.19] An array reference of files to be cleaned up when the \*(C`clean\*(C'\fR action is performed. See also the add_to_cleanup() method. auto_configure_requires [version 0.34] This parameter determines whether Module::Build will add itself automatically to configure_requires (and build_requires) if Module::Build is not already there. The required version will be the last 'major' release, as defined by the decimal version truncated to two decimal places (e.g. 0.34, instead of 0.3402). The default value is true. auto_features [version 0.26] This parameter supports the setting of features (see ‟feature($name)”) automatically based on a set of prerequisites. For instance, for a module that could optionally use either MySQL or PostgreSQL databases, you might use \*(C`auto_features\*(C'\fR like this: my $build = Module::Build−>new
(
...other stuff here...
auto_features => {
pg_support => {
description => "Interface with Postgres databases",
requires => { 'DBD::Pg' => 23.3,
'DateTime::Format::Pg' => 0 },
},
mysql_support => {
description => "Interface with MySQL databases",
requires => { 'DBD::mysql' => 17.9,
'DateTime::Format::MySQL' => 0 },
},
}
);
For each feature named, the required prerequisites will be checked, and if there are no failures, the feature will be enabled (set to 1). Otherwise the failures will be displayed to the user and the feature will be disabled (set to 0). See the documentation for ‟requires” for the details of how requirements can be specified. autosplit [version 0.04] An optional \*(C`autosplit\*(C'\fR argument specifies a file which should be run through the AutoSplit::autosplit() function. If multiple files should be split, the argument may be given as an array of the files to split. In general I don't consider autosplitting a great idea, because it's not always clear that autosplitting achieves its intended performance benefits. It may even harm performance in environments like mod_perl, where as much as possible of a module's code should be loaded during startup. build_class [version 0.28] The Module::Build class or subclass to use in the build script. Defaults to ‟Module::Build” or the class name passed to or created by a call to ‟subclass()”. This property is useful if you're writing a custom Module::Build subclass and have a bootstrapping problem\*(--that is, your subclass requires modules that may not be installed when \*(C`perl Build.PL\*(C'\fR is executed, but you've listed in ‟build_requires” so that they should be available when \*(C`./Build\*(C'\fR is executed. build_requires [version 0.07] Modules listed in this section are necessary to build and install the given module, but are not necessary for regular usage of it. This is actually an important distinction − it allows for tighter control over the body of installed modules, and facilitates correct dependency checking on binary/packaged distributions of the module. See the documentation for ‟PREREQUISITES” in Module::Build::Authoring for the details of how requirements can be specified. create_packlist [version 0.28] If true, this parameter tells Module::Build to create a .packlist file during the \*(C`install\*(C'\fR action, just like \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR does. The file is created in a subdirectory of the \*(C`arch\*(C'\fR installation location. It is used by some other tools (CPAN, CPANPLUS, etc.) for determining what files are part of an install. The default value is true. This parameter was introduced in Module::Build version 0.2609; previously no packlists were ever created by Module::Build. c_source [version 0.04] An optional \*(C`c_source\*(C'\fR argument specifies a directory which contains C source files that the rest of the build may depend on. Any \*(C`.c\*(C'\fR files in the directory will be compiled to object files. The directory will be added to the search path during the compilation and linking phases of any C or XS files. conflicts [version 0.07] Modules listed in this section conflict in some serious way with the given module. \*(C`Module::Build\*(C'\fR (or some higher-level tool) will refuse to install the given module if the given module/version is also installed. See the documentation for ‟PREREQUISITES” in Module::Build::Authoring for the details of how requirements can be specified. create_license [version 0.31] This parameter tells Module::Build to automatically create a LICENSE file at the top level of your distribution, containing the full text of the author's chosen license. This requires \*(C`Software::License\*(C'\fR on the author's machine, and further requires that the \*(C`license\*(C'\fR parameter specifies a license that it knows about. create_makefile_pl [version 0.19] This parameter lets you use \*(C`Module::Build::Compat\*(C'\fR during the \*(C`distdir\*(C'\fR (or \f(CW\*(C`dist\*(C'\fR) action to automatically create a Makefile.PL for compatibility with \*(C`ExtUtils::MakeMaker\*(C'\fR. The parameter's value should be one of the styles named in the Module::Build::Compat documentation. create_readme [version 0.22] This parameter tells Module::Build to automatically create a README file at the top level of your distribution. Currently it will simply use \*(C`Pod::Text\*(C'\fR (or \f(CW\*(C`Pod::Readme\*(C'\fR if it's installed) on the file indicated by \*(C`dist_version_from\*(C'\fR and put the result in the \fI\s-1README\s0\fR file. This is by no means the only recommended style for writing a README, but it seems to be one common one used on the CPAN. If you generate a README in this way, it's probably a good idea to create a separate INSTALL file if that information isn't in the generated README. dist_abstract [version 0.20] This should be a short description of the distribution. This is used when generating metadata for META.yml and PPD files. If it is not given then \*(C`Module::Build\*(C'\fR looks in the \s-1POD\s0 of the module from which it gets the distribution's version. If it finds a POD section marked ‟=head1 NAME”, then it looks for the first line matching \*(C`\es+\-\es+(.+)\*(C'\fR, and uses the captured text as the abstract. dist_author [version 0.20] This should be something like ‟John Doe <jdoe@example.com>”, or if there are multiple authors, an anonymous array of strings may be specified. This is used when generating metadata for META.yml and PPD files. If this is not specified, then \*(C`Module::Build\*(C'\fR looks at the module from which it gets the distribution's version. If it finds a POD section marked ‟=head1 AUTHOR”, then it uses the contents of this section. dist_name [version 0.11] Specifies the name for this distribution. Most authors won't need to set this directly, they can use \*(C`module_name\*(C'\fR to set \f(CW\*(C`dist_name\*(C'\fR to a reasonable default. However, some agglomerative distributions like \*(C`libwww\-perl\*(C'\fR or \f(CW\*(C`bioperl\*(C'\fR have names that don't correspond directly to a module name, so \*(C`dist_name\*(C'\fR can be set independently. dist_version [version 0.11] Specifies a version number for the distribution. See ‟module_name” or ‟dist_version_from” for ways to have this set automatically from a $VERSION variable in a module. One way or another, a version number needs to be set. dist_version_from [version 0.11] Specifies a file to look for the distribution version in. Most authors won't need to set this directly, they can use ‟module_name” to set it to a reasonable default. The version is extracted from the specified file according to the same rules as ExtUtils::MakeMaker and \*(C`CPAN.pm\*(C'\fR. It involves finding the first line that matches the regular expression /([\$*])(([\w\:\']*)\bVERSION)\b.*\=/
eval()−ing that line, then checking the value of the $VERSION variable. Quite ugly, really, but all the modules on CPAN depend on this process, so there's no real opportunity to change to something better. If the target file of ‟dist_version_from” contains more than one package declaration, the version returned will be the one matching the configured ‟module_name”. dynamic_config [version 0.07] A boolean flag indicating whether the Build.PL file must be executed, or whether this module can be built, tested and installed solely from consulting its metadata file. The main reason to set this to a true value is that your module performs some dynamic configuration as part of its build/install process. If the flag is omitted, the META.yml spec says that installation tools should treat it as 1 (true), because this is a safer way to behave. Currently \*(C`Module::Build\*(C'\fR doesn't actually do anything with this flag − it's up to higher-level tools like \*(C`CPAN.pm\*(C'\fR to do something useful with it. It can potentially bring lots of security, packaging, and convenience improvements. extra_compiler_flags extra_linker_flags [version 0.19] These parameters can contain array references (or strings, in which case they will be split into arrays) to pass through to the compiler and linker phases when compiling/linking C code. For example, to tell the compiler that your code is C++, you might do: my $build = Module::Build−>new
(
module_name => 'Foo::Bar',
extra_compiler_flags => ['−x', 'c++'],
);
To link your XS code against glib you might write something like: my $build = Module::Build−>new
(
module_name => 'Foo::Bar',
dynamic_config => 1,
extra_compiler_flags => scalar `glib−config −−cflags`,
extra_linker_flags => scalar `glib−config −−libs`,
);
get_options [version 0.26] You can pass arbitrary command line options to Build.PL or Build, and they will be stored in the Module::Build object and can be accessed via the ‟args()” method. However, sometimes you want more flexibility out of your argument processing than this allows. In such cases, use the \*(C`get_options\*(C'\fR parameter to pass in a hash reference of argument specifications, and the list of arguments to Build.PL or Build will be processed according to those specifications before they're passed on to \*(C`Module::Build\*(C'\fR's own argument processing. The supported option specification hash keys are: type The type of option. The types are those supported by Getopt::Long; consult its documentation for a complete list. Typical types are \*(C`=s\*(C'\fR for strings, \*(C`+\*(C'\fR for additive options, and \f(CW\*(C`!\*(C'\fR for negatable options. If the type is not specified, it will be considered a boolean, i.e. no argument is taken and a value of 1 will be assigned when the option is encountered. store A reference to a scalar in which to store the value passed to the option. If not specified, the value will be stored under the option name in the hash returned by the \*(C`args()\*(C'\fR method. default A default value for the option. If no default value is specified and no option is passed, then the option key will not exist in the hash returned by \*(C`args()\*(C'\fR. You can combine references to your own variables or subroutines with unreferenced specifications, for which the result will also be stored in the hash returned by \*(C`args()\*(C'\fR. For example: my $loud = 0;
my $build = Module::Build−>new
(
module_name => 'Foo::Bar',
get_options => {
Loud => { store => \$loud },
Dbd => { type => '=s' },
Quantity => { type => '+' },
}
);
print STDERR "HEY, ARE YOU LISTENING??\n" if $loud;
print "We'll use the ", $build−>args('Dbd'), " DBI driver\n";
print "Are you sure you want that many?\n"
if $build−>args('Quantity') > 2;
The arguments for such a specification can be called like so: perl Build.PL −−Loud −−Dbd=DBD::pg −−Quantity −−Quantity −−Quantity
WARNING: Any option specifications that conflict with Module::Build's own options (defined by its properties) will throw an exception. Use capitalized option names to avoid unintended conflicts with future Module::Build options. Consult the Getopt::Long documentation for details on its usage. include_dirs [version 0.24] Specifies any additional directories in which to search for C header files. May be given as a string indicating a single directory, or as a list reference indicating multiple directories. install_path [version 0.19] You can set paths for individual installable elements by using the \*(C`install_path\*(C'\fR parameter: my $build = Module::Build−>new
(
...other stuff here...
install_path => {
lib => '/foo/lib',
arch => '/foo/lib/arch',
}
);
installdirs [version 0.19] Determines where files are installed within the normal perl hierarchy as determined by Config.pm. Valid values are: \*(C`core\*(C'\fR, \f(CW\*(C`site\*(C'\fR, \*(C`vendor\*(C'\fR. The default is \f(CW\*(C`site\*(C'\fR. See ‟INSTALL PATHS” in Module::Build license [version 0.07] Specifies the licensing terms of your distribution. Valid options include: apache The distribution is licensed under the Apache Software License (<http://opensource.org/licenses/apachepl.php>). artistic The distribution is licensed under the Artistic License, as specified by the Artistic file in the standard Perl distribution. artistic_2 The distribution is licensed under the Artistic 2.0 License (<http://opensource.org/licenses/artistic−license−2.0.php>.) bsd The distribution is licensed under the BSD License (<http://www.opensource.org/licenses/bsd−license.php>). gpl The distribution is licensed under the terms of the GNU General Public License (<http://www.opensource.org/licenses/gpl−license.php>). lgpl The distribution is licensed under the terms of the GNU Lesser General Public License (<http://www.opensource.org/licenses/lgpl−license.php>). mit The distribution is licensed under the MIT License (<http://opensource.org/licenses/mit−license.php>). mozilla The distribution is licensed under the Mozilla Public License. (<http://opensource.org/licenses/mozilla1.0.php> or <http://opensource.org/licenses/mozilla1.1.php>) open_source The distribution is licensed under some other Open Source Initiative-approved license listed at <http://www.opensource.org/licenses/>. perl The distribution may be copied and redistributed under the same terms as Perl itself (this is by far the most common licensing option for modules on CPAN). This is a dual license, in which the user may choose between either the GPL or the Artistic license. restrictive The distribution may not be redistributed without special permission from the author and/or copyright holder. unrestricted The distribution is licensed under a license that is not approved by www.opensource.org but that allows distribution without restrictions. Note that you must still include the terms of your license in your documentation − this field only lets automated tools figure out your licensing restrictions. Humans still need something to read. If you choose to provide this field, you should make sure that you keep it in sync with your written documentation if you ever change your licensing terms. You may also use a license type of \*(C`unknown\*(C'\fR if you don't wish to specify your terms in the metadata. It is a fatal error to use a license other than the ones mentioned above. This is not because I wish to impose licensing terms on you − please let me know if you would like another license option to be added to the list. I just started out with a small set of licenses to keep things simple, figuring I'd let people with actual working knowledge in this area tell me what to do. So if that's you, drop me a line. meta_add [version 0.28] A hash of key/value pairs that should be added to the META.yml file during the \*(C`distmeta\*(C'\fR action. Any existing entries with the same names will be overridden. See the ‟MODULE METADATA” section for details. meta_merge [version 0.28] A hash of key/value pairs that should be merged into the META.yml file during the \*(C`distmeta\*(C'\fR action. Any existing entries with the same names will be overridden. The only difference between \*(C`meta_add\*(C'\fR and \f(CW\*(C`meta_merge\*(C'\fR is their behavior on hash-valued and array-valued entries: \*(C`meta_add\*(C'\fR will completely blow away the existing hash or array value, but \*(C`meta_merge\*(C'\fR will merge the supplied data into the existing hash or array value. See the ‟MODULE METADATA” section for details. module_name [version 0.03] The \*(C`module_name\*(C'\fR is a shortcut for setting default values of \*(C`dist_name\*(C'\fR and \f(CW\*(C`dist_version_from\*(C'\fR, reflecting the fact that the majority of CPAN distributions are centered around one ‟main” module. For instance, if you set \*(C`module_name\*(C'\fR to \f(CW\*(C`Foo::Bar\*(C'\fR, then \*(C`dist_name\*(C'\fR will default to \f(CW\*(C`Foo\-Bar\*(C'\fR and \f(CW\*(C`dist_version_from\*(C'\fR will default to \*(C`lib/Foo/Bar.pm\*(C'\fR. \f(CW\*(C`dist_version_from\*(C'\fR will in turn be used to set \*(C`dist_version\*(C'\fR. Setting \*(C`module_name\*(C'\fR won't override a \f(CW\*(C`dist_*\*(C'\fR parameter you specify explicitly. PL_files [version 0.06] An optional parameter specifying a set of \*(C`.PL\*(C'\fR files in your distribution. These will be run as Perl scripts prior to processing the rest of the files in your distribution with the name of the file they're generating as an argument. They are usually used as templates for creating other files dynamically, so that a file like \*(C`lib/Foo/Bar.pm.PL\*(C'\fR might create the file \f(CW\*(C`lib/Foo/Bar.pm\*(C'\fR. The files are specified with the \*(C`.PL\*(C'\fR files as hash keys, and the file(s) they generate as hash values, like so: my $build = Module::Build−>new
(
module_name => 'Foo::Bar',
...
PL_files => { 'lib/Foo/Bar.pm.PL' => 'lib/Foo/Bar.pm' },
);
Note that the path specifications are always given in Unix-like format, not in the style of the local system. If your \*(C`.PL\*(C'\fR scripts don't create any files, or if they create files with unexpected names, or even if they create multiple files, you can indicate that so that Module::Build can properly handle these created files: PL_files => {
'lib/Foo/Bar.pm.PL' => 'lib/Foo/Bar.pm',
'lib/something.PL' => ['/lib/something', '/lib/else'],
'lib/funny.PL' => [],
}
Here's an example of a simple PL file. my $output_file = shift;
open my $fh, ">", $output_file or die "Can't open $output_file: $!";
print $fh <<'END';
#!/usr/bin/perl
print "Hello, world!\n";
END
PL files are not installed by default, so its safe to put them in lib/ and bin/. pm_files [version 0.19] An optional parameter specifying the set of \*(C`.pm\*(C'\fR files in this distribution, specified as a hash reference whose keys are the files' locations in the distributions, and whose values are their logical locations based on their package name, i.e. where they would be found in a ‟normal” Module::Build−style distribution. This parameter is mainly intended to support alternative layouts of files. For instance, if you have an old-style \*(C`MakeMaker\*(C'\fR distribution for a module called \*(C`Foo::Bar\*(C'\fR and a \fIBar.pm\fR file at the top level of the distribution, you could specify your layout in your \*(C`Build.PL\*(C'\fR like this: my $build = Module::Build−>new
(
module_name => 'Foo::Bar',
...
pm_files => { 'Bar.pm' => 'lib/Foo/Bar.pm' },
);
Note that the values should include \*(C`lib/\*(C'\fR, because this is where they would be found in a ‟normal” Module::Build−style distribution. Note also that the path specifications are always given in Unix-like format, not in the style of the local system. pod_files [version 0.19] Just like \*(C`pm_files\*(C'\fR, but used for specifying the set of \f(CW\*(C`.pod\*(C'\fR files in your distribution. recommends [version 0.08] This is just like the ‟requires” argument, except that modules listed in this section aren't essential, just a good idea. We'll just print a friendly warning if one of these modules aren't found, but we'll continue running. If a module is recommended but not required, all tests should still pass if the module isn't installed. This may mean that some tests may be skipped if recommended dependencies aren't present. Automated tools like CPAN.pm should inform the user when recommended modules aren't installed, and it should offer to install them if it wants to be helpful. See the documentation for ‟PREREQUISITES” in Module::Build::Authoring for the details of how requirements can be specified. recursive_test_files [version 0.28] Normally, \*(C`Module::Build\*(C'\fR does not search subdirectories when looking for tests to run. When this options is set it will search recursively in all subdirectories of the standard 't' test directory. requires [version 0.07] An optional \*(C`requires\*(C'\fR argument specifies any module prerequisites that the current module depends on. One note: currently \*(C`Module::Build\*(C'\fR doesn't actually \fIrequire\fR the user to have dependencies installed, it just strongly urges. In the future we may require it. There's also a ‟recommends” section for things that aren't absolutely required. Automated tools like CPAN.pm should refuse to install a module if one of its dependencies isn't satisfied, unless a ‟force” command is given by the user. If the tools are helpful, they should also offer to install the dependencies. A synonym for \*(C`requires\*(C'\fR is \f(CW\*(C`prereq\*(C'\fR, to help succour people transitioning from \*(C`ExtUtils::MakeMaker\*(C'\fR. The \f(CW\*(C`requires\*(C'\fR term is preferred, but the \*(C`prereq\*(C'\fR term will remain valid in future distributions. See the documentation for ‟PREREQUISITES” in Module::Build::Authoring for the details of how requirements can be specified. script_files [version 0.18] An optional parameter specifying a set of files that should be installed as executable Perl scripts when the module is installed. May be given as an array reference of the files, as a hash reference whose keys are the files (and whose values will currently be ignored), as a string giving the name of a directory in which to find scripts, or as a string giving the name of a single script file. The default is to install any scripts found in a bin directory at the top level of the distribution, minus any keys of PL_files. For backward compatibility, you may use the parameter \*(C`scripts\*(C'\fR instead of \*(C`script_files\*(C'\fR. Please consider this usage deprecated, though it will continue to exist for several version releases. sign [version 0.16] If a true value is specified for this parameter, Module::Signature will be used (via the 'distsign' action) to create a SIGNATURE file for your distribution during the 'distdir' action, and to add the SIGNATURE file to the MANIFEST (therefore, don't add it yourself). The default value is false. In the future, the default may change to true if you have \*(C`Module::Signature\*(C'\fR installed on your system. test_files [version 0.23] An optional parameter specifying a set of files that should be used as \*(C`Test::Harness\*(C'\fR\-style regression tests to be run during the \f(CW\*(C`test\*(C'\fR action. May be given as an array reference of the files, or as a hash reference whose keys are the files (and whose values will currently be ignored). If the argument is given as a single string (not in an array reference), that string will be treated as a \*(C`glob()\*(C'\fR pattern specifying the files to use. The default is to look for a test.pl script in the top-level directory of the distribution, and any files matching the glob pattern \*(C`*.t\*(C'\fR in the \fIt/\fR subdirectory. If the \f(CW\*(C`recursive_test_files\*(C'\fR property is true, then the \*(C`t/\*(C'\fR directory will be scanned recursively for \*(C`*.t\*(C'\fR files. use_tap_harness [version 0.2808_03] An optional parameter indicating whether or not to use TAP::Harness for testing rather than Test::Harness. Defaults to false. If set to true, you must therefore be sure to add TAP::Harness as a requirement for your module in ‟build_requires”. Implicitly set to a true value if \*(C`tap_harness_args\*(C'\fR is specified. tap_harness_args [version 0.2808_03] An optional parameter specifying parameters to be passed to TAP::Harness when running tests. Must be given as a hash reference of parameters; see the TAP::Harness documentation for details. Note that specifying this parameter will implicitly set \*(C`use_tap_harness\*(C'\fR to a true value. You must therefore be sure to add TAP::Harness as a requirement for your module in ‟build_requires”. xs_files [version 0.19] Just like \*(C`pm_files\*(C'\fR, but used for specifying the set of \f(CW\*(C`.xs\*(C'\fR files in your distribution. new_from_context(%args) [version 0.28] When called from a directory containing a Build.PL script and a META.yml file (in other words, the base directory of a distribution), this method will run the Build.PL and return the resulting \*(C`Module::Build\*(C'\fR object to the caller. Any key-value arguments given to \*(C`new_from_context()\*(C'\fR are essentially like command line arguments given to the Build.PL script, so for example you could pass \*(C`verbose => 1\*(C'\fR to this method to turn on verbosity. resume() [version 0.03] You'll probably never call this method directly, it's only called from the auto-generated \*(C`Build\*(C'\fR script. The \f(CW\*(C`new()\*(C'\fR method is only called once, when the user runs \*(C`perl Build.PL\*(C'\fR. Thereafter, when the user runs \*(C`Build test\*(C'\fR or another action, the \f(CW\*(C`Module::Build\*(C'\fR object is created using the \*(C`resume()\*(C'\fR method to re-instantiate with the settings given earlier to \*(C`new()\*(C'\fR. subclass() [version 0.06] This creates a new \*(C`Module::Build\*(C'\fR subclass on the fly, as described in the ‟SUBCLASSING” in Module::Build::Authoring section. The caller must provide either a \*(C`class\*(C'\fR or \f(CW\*(C`code\*(C'\fR parameter, or both. The \*(C`class\*(C'\fR parameter indicates the name to use for the new subclass, and defaults to \*(C`MyModuleBuilder\*(C'\fR. The \f(CW\*(C`code\*(C'\fR parameter specifies Perl code to use as the body of the subclass. add_property [version 0.31] package 'My::Build';
use base 'Module::Build';
_ _PACKAGE_ _−>add_property( 'pedantic' );
_ _PACKAGE_ _−>add_property( answer => 42 );
_ _PACKAGE_ _−>add_property(
'epoch',
default => sub { time },
check => sub {
return 1 if /^\d+$/;
shift−>property_error( "'$_' is not an epoch time" );
return 0;
},
);
Adds a property to a Module::Build class. Properties are those attributes of a Module::Build object which can be passed to the constructor and which have accessors to get and set them. All of the core properties, such as \*(C`module_name\*(C'\fR and \f(CW\*(C`license\*(C'\fR, are defined using this class method. The first argument to \*(C`add_property()\*(C'\fR is always the name of the property. The second argument can be either a default value for the property, or a list of key/value pairs. The supported keys are: default The default value. May optionally be specified as a code reference, in which case the return value from the execution of the code reference will be used. If you need the default to be a code reference, just use a code reference to return it, e.g.: default => sub { sub { ... } },
check A code reference that checks that a value specified for the property is valid. During the execution of the code reference, the new value will be included in the $_ variable. If the value is correct, the \*(C`check\*(C'\fR code reference should return true. If the value is not correct, it sends an error message to \*(C`property_error()\*(C'\fR and returns false. When this method is called, a new property will be installed in the Module::Build class, and an accessor will be built to allow the property to be get or set on the build object. print $build−>pedantic, $/;
$build−>pedantic(0);
If the default value is a hash reference, this generates a special-case accessor method, wherein individual key/value pairs may be set or fetched: print "stuff{foo} is: ", $build−>stuff( 'foo' ), $/;
$build−>stuff( foo => 'bar' );
print $build−>stuff( 'foo' ), $/; # Outputs "bar"
Of course, you can still set the entire hash reference at once, as well: $build−>stuff( { foo => 'bar', baz => 'yo' } );
In either case, if a \*(C`check\*(C'\fR has been specified for the property, it will be applied to the entire hash. So the check code reference should look something like: check => sub {
return 1 if defined $_ && exists $_−>{foo};
shift−>property_error(qq{Property "stuff" needs "foo"});
return 0;
},
property_error [version 0.31]
METHODSadd_build_element($type) [version 0.26] Adds a new type of entry to the build process. Accepts a single string specifying its type-name. There must also be a method defined to process things of that type, e.g. if you add a build element called 'foo', then you must also define a method called \*(C`process_foo_files()\*(C'\fR. See also ‟Adding new file types to the build process” in Module::Build::Cookbook. add_to_cleanup(@files) [version 0.03] You may call \*(C`$self\->add_to_cleanup(@patterns)\*(C'\fR to tell \*(C`Module::Build\*(C'\fR that certain files should be removed when the user performs the \*(C`Build clean\*(C'\fR action. The arguments to the method are patterns suitable for passing to Perl's \*(C`glob()\*(C'\fR function, specified in either Unix format or the current machine's native format. It's usually convenient to use Unix format when you hard-code the filenames (e.g. in Build.PL) and the native format when the names are programmatically generated (e.g. in a testing script). I decided to provide a dynamic method of the $build object, rather than just use a static list of files named in the Build.PL, because these static lists can get difficult to manage. I usually prefer to keep the responsibility for registering temporary files close to the code that creates them. args() [version 0.26] my $args_href = $build−>args;
my %args = $build−>args;
my $arg_value = $build−>args($key);
$build−>args($key, $value);
This method is the preferred interface for retrieving the arguments passed via command line options to Build.PL or Build, minus the Module-Build specific options. When called in in a scalar context with no arguments, this method returns a reference to the hash storing all of the arguments; in an array context, it returns the hash itself. When passed a single argument, it returns the value stored in the args hash for that option key. When called with two arguments, the second argument is assigned to the args hash under the key passed as the first argument. autosplit_file($from, $to) [version 0.28] Invokes the AutoSplit module on the $from file, sending the output to the \*(C`lib/auto\*(C'\fR directory inside \f(CW$to\fR. \f(CW$to\fR is typically the \*(C`blib/\*(C'\fR directory. base_dir() [version 0.14] Returns a string containing the root-level directory of this build, i.e. where the \*(C`Build.PL\*(C'\fR script and the \f(CW\*(C`lib\*(C'\fR directory can be found. This is usually the same as the current working directory, because the \*(C`Build\*(C'\fR script will \f(CW\*(C`chdir()\*(C'\fR into this directory as soon as it begins execution. build_requires() [version 0.21] Returns a hash reference indicating the \*(C`build_requires\*(C'\fR prerequisites that were passed to the \*(C`new()\*(C'\fR method. can_action( $action ) Returns a reference to the method that defines $action, or false otherwise. This is handy for actions defined (or maybe not!) in subclasses. [version 0.32_xx] cbuilder() [version 0.2809] Returns the internal ExtUtils::CBuilder object that can be used for compiling & linking C code. If no such object is available (e.g. if the system has no compiler installed) an exception will be thrown. check_installed_status($module, $version) [version 0.11] This method returns a hash reference indicating whether a version dependency on a certain module is satisfied. The $module argument is given as a string like "Data::Dumper" or "perl", and the $version argument can take any of the forms described in ‟requires” above. This allows very fine-grained version checking. The returned hash reference has the following structure: {
ok => $whether_the_dependency_is_satisfied,
have => $version_already_installed,
need => $version_requested, # Same as incoming $version argument
message => $informative_error_message,
}
If no version of $module is currently installed, the \*(C`have\*(C'\fR value will be the string "<none>". Otherwise the \*(C`have\*(C'\fR value will simply be the version of the installed module. Note that this means that if $module is installed but doesn't define a version number, the \*(C`have\*(C'\fR value will be \f(CW\*(C`undef\*(C'\fR \- this is why we don't use \f(CW\*(C`undef\*(C'\fR for the case when $module isn't installed at all. This method may be called either as an object method (\*(C`$build\->check_installed_status($module, $version)\*(C'\fR) or as a class method (\*(C`Module::Build\->check_installed_status($module, $version)\*(C'\fR). check_installed_version($module, $version) [version 0.05] Like check_installed_status(), but simply returns true or false depending on whether module $module satisfies the dependency $version. If the check succeeds, the return value is the actual version of $module installed on the system. This allows you to do the following: my $installed = $build−>check_installed_version('DBI', '1.15');
if ($installed) {
print "Congratulations, version $installed of DBI is installed.\n";
} else {
die "Sorry, you must install DBI.\n";
}
If the check fails, we return false and set $@ to an informative error message. If $version is any non-true value (notably zero) and any version of $module is installed, we return true. In this case, if $module doesn't define a version, or if its version is zero, we return the special value ‟0 but true”, which is numerically zero, but logically true. In general you might prefer to use \*(C`check_installed_status\*(C'\fR if you need detailed information, or this method if you just need a yes/no answer. compare_versions($v1, $op, $v2) [version 0.28] Compares two module versions $v1 and $v2 using the operator $op, which should be one of Perl's numeric operators like \*(C`!=\*(C'\fR or \*(C`>=\*(C'\fR or the like. We do at least a halfway-decent job of handling versions that aren't strictly numeric, like \*(C`0.27_02\*(C'\fR, but exotic stuff will likely cause problems. In the future, the guts of this method might be replaced with a call out to \*(C`version.pm\*(C'\fR. config($key) config($key, $value) config() [deprecated] [version 0.22] With a single argument $key, returns the value associated with that key in the \*(C`Config.pm\*(C'\fR hash, including any changes the author or user has specified. With $key and $value arguments, sets the value for future callers of \*(C`config($key)\*(C'\fR. With no arguments, returns a hash reference containing all such key-value pairs. This usage is deprecated, though, because it's a resource hog and violates encapsulation. config_data($name) config_data($name => $value) [version 0.26] With a single argument, returns the value of the configuration variable $name. With two arguments, sets the given configuration variable to the given value. The value may be any Perl scalar that's serializable with \*(C`Data::Dumper\*(C'\fR. For instance, if you write a module that can use a MySQL or PostgreSQL back-end, you might create configuration variables called \*(C`mysql_connect\*(C'\fR and \*(C`postgres_connect\*(C'\fR, and set each to an array of connection parameters for \*(C`DBI\->connect()\*(C'\fR. Configuration values set in this way using the Module::Build object will be available for querying during the build/test process and after installation via the generated \*(C`...::ConfigData\*(C'\fR module, as \*(C`...::ConfigData\->config($name)\*(C'\fR. The feature() and \*(C`config_data()\*(C'\fR methods represent Module::Build's main support for configuration of installed modules. See also ‟SAVING CONFIGURATION INFORMATION” in Module::Build::Authoring. conflicts() [version 0.21] Returns a hash reference indicating the \*(C`conflicts\*(C'\fR prerequisites that were passed to the \*(C`new()\*(C'\fR method. contains_pod($file) [version 0.20] [Deprecated] Please see Module::Build::ModuleInfo instead. Returns true if the given file appears to contain POD documentation. Currently this checks whether the file has a line beginning with '=pod', '=head', or '=item', but the exact semantics may change in the future. copy_if_modified(%parameters) [version 0.19] Takes the file in the \*(C`from\*(C'\fR parameter and copies it to the file in the \*(C`to\*(C'\fR parameter, or the directory in the \f(CW\*(C`to_dir\*(C'\fR parameter, if the file has changed since it was last copied (or if it doesn't exist in the new location). By default the entire directory structure of \*(C`from\*(C'\fR will be copied into \f(CW\*(C`to_dir\*(C'\fR; an optional \f(CW\*(C`flatten\*(C'\fR parameter will copy into \*(C`to_dir\*(C'\fR without doing so. Returns the path to the destination file, or \*(C`undef\*(C'\fR if nothing needed to be copied. Any directories that need to be created in order to perform the copying will be automatically created. The destination file is set to read-only. If the source file has the executable bit set, then the destination file will be made executable. create_build_script() [version 0.05] Creates an executable script called \*(C`Build\*(C'\fR in the current directory that will be used to execute further user actions. This script is roughly analogous (in function, not in form) to the Makefile created by \*(C`ExtUtils::MakeMaker\*(C'\fR. This method also creates some temporary data in a directory called \*(C`_build/\*(C'\fR. Both of these will be removed when the \*(C`realclean\*(C'\fR action is performed. Among the files created in \*(C`_build/\*(C'\fR is a \fI_build/prereqs\fR file containing the set of prerequisites for this distribution, as a hash of hashes. This file may be \*(C`eval()\*(C'\fR\-ed to obtain the authoritative set of prerequisites, which might be different from the contents of META.yml (because Build.PL might have set them dynamically). But fancy developers take heed: do not put any fancy custom runtime code in the _build/prereqs file, leave it as a static declaration containing only strings and numbers. Similarly, do not alter the structure of the internal \*(C`$self\->{properties}{requires}\*(C'\fR (etc.) data members, because that's where this data comes from. current_action() [version 0.28] Returns the name of the currently-running action, such as ‟build” or ‟test”. This action is not necessarily the action that was originally invoked by the user. For example, if the user invoked the ‟test” action, current_action() would initially return ‟test”. However, action ‟test” depends on action ‟code”, so current_action() will return ‟code” while that dependency is being executed. Once that action has completed, current_action() will again return ‟test”. If you need to know the name of the original action invoked by the user, see ‟invoked_action()” below. depends_on(@actions) [version 0.28] Invokes the named action or list of actions in sequence. Using this method is preferred to calling the action explicitly because it performs some internal record-keeping, and it ensures that the same action is not invoked multiple times (note: in future versions of Module::Build it's conceivable that this run-only-once mechanism will be changed to something more intelligent). Note that the name of this method is something of a misnomer; it should really be called something like \*(C`invoke_actions_unless_already_invoked()\*(C'\fR or something, but for better or worse (perhaps better!) we were still thinking in \*(C`make\*(C'\fR\-like dependency terms when we created this method. See also dispatch(). The main distinction between the two is that \*(C`depends_on()\*(C'\fR is meant to call an action from inside another action, whereas \*(C`dispatch()\*(C'\fR is meant to set the very top action in motion. dir_contains($first_dir, $second_dir) [version 0.28] Returns true if the first directory logically contains the second directory. This is just a convenience function because \*(C`File::Spec\*(C'\fR doesn't really provide an easy way to figure this out (but \*(C`Path::Class\*(C'\fR does...). dispatch($action, %args) [version 0.03] Invokes the build action $action. Optionally, a list of options and their values can be passed in. This is equivalent to invoking an action at the command line, passing in a list of options. Custom options that have not been registered must be passed in as a hash reference in a key named ‟args”: $build−>dispatch('foo', verbose => 1, args => { my_option => 'value' });
This method is intended to be used to programmatically invoke build actions, e.g. by applications controlling Module::Build−based builds rather than by subclasses. See also depends_on(). The main distinction between the two is that \*(C`depends_on()\*(C'\fR is meant to call an action from inside another action, whereas \*(C`dispatch()\*(C'\fR is meant to set the very top action in motion. dist_dir() [version 0.28] Returns the name of the directory that will be created during the \*(C`dist\*(C'\fR action. The name is derived from the \f(CW\*(C`dist_name\*(C'\fR and \*(C`dist_version\*(C'\fR properties. dist_name() [version 0.21] Returns the name of the current distribution, as passed to the \*(C`new()\*(C'\fR method in a \f(CW\*(C`dist_name\*(C'\fR or modified \f(CW\*(C`module_name\*(C'\fR parameter. dist_version() [version 0.21] Returns the version of the current distribution, as determined by the \*(C`new()\*(C'\fR method from a \f(CW\*(C`dist_version\*(C'\fR, \f(CW\*(C`dist_version_from\*(C'\fR, or \*(C`module_name\*(C'\fR parameter. do_system($cmd, @args) [version 0.21] This is a fairly simple wrapper around Perl's \*(C`system()\*(C'\fR built-in command. Given a command and an array of optional arguments, this method will print the command to \*(C`STDOUT\*(C'\fR, and then execute it using Perl's \*(C`system()\*(C'\fR. It returns true or false to indicate success or failure (the opposite of how \*(C`system()\*(C'\fR works, but more intuitive). Note that if you supply a single argument to \*(C`do_system()\*(C'\fR, it will/may be processed by the system's shell, and any special characters will do their special things. If you supply multiple arguments, no shell will get involved and the command will be executed directly. feature($name) feature($name => $value) [version 0.26] With a single argument, returns true if the given feature is set. With two arguments, sets the given feature to the given boolean value. In this context, a ‟feature” is any optional functionality of an installed module. For instance, if you write a module that could optionally support a MySQL or PostgreSQL backend, you might create features called \*(C`mysql_support\*(C'\fR and \f(CW\*(C`postgres_support\*(C'\fR, and set them to true/false depending on whether the user has the proper databases installed and configured. Features set in this way using the Module::Build object will be available for querying during the build/test process and after installation via the generated \*(C`...::ConfigData\*(C'\fR module, as \*(C`...::ConfigData\->feature($name)\*(C'\fR. The \*(C`feature()\*(C'\fR and \f(CW\*(C`config_data()\*(C'\fR methods represent Module::Build's main support for configuration of installed modules. See also ‟SAVING CONFIGURATION INFORMATION” in Module::Build::Authoring. fix_shebang_line(@files) [version 0.??] Modify any ‟shebang” line in the specified files to use the path to the perl executable being used for the current build. Files are modified in-place. The existing shebang line must have a command that contains "\*(C`perl\*(C'\fR"; arguments to the command do not count. In particular, this means that the use of \*(C`#!/usr/bin/env perl\*(C'\fR will not be changed. For an explanation of shebang lines, see <http://en.wikipedia.org/wiki/Shebang_%28Unix%29>. have_c_compiler() [version 0.21] Returns true if the current system seems to have a working C compiler. We currently determine this by attempting to compile a simple C source file and reporting whether the attempt was successful. install_base_relpaths() install_base_relpaths($type) install_base_relpaths($type => $path) [version 0.28] Set or retrieve the relative paths that are appended to \*(C`install_base\*(C'\fR for any installable element. This is useful if you want to set the relative install path for custom build elements. With no argument, it returns a reference to a hash containing all elements and their respective values. This hash should not be modified directly; use the multiple argument below form to change values. The single argument form returns the value associated with the element $type. The multiple argument form allows you to set the paths for element types. $value must be a relative path using Unix-like paths. (A series of directories separated by slashes, e.g. \*(C`foo/bar\*(C'\fR.) The return value is a localized path based on $value. Assigning the value \*(C`undef\*(C'\fR to an element causes it to be removed. install_destination($type) [version 0.28] Returns the directory in which items of type $type (e.g. \*(C`lib\*(C'\fR, \*(C`arch\*(C'\fR, \f(CW\*(C`bin\*(C'\fR, or anything else returned by the \*(L"\fIinstall_types()\fR\*(R" method) will be installed during the \*(C`install\*(C'\fR action. Any settings for \*(C`install_path\*(C'\fR, \f(CW\*(C`install_base\*(C'\fR, and \f(CW\*(C`prefix\*(C'\fR are taken into account when determining the return value. install_path() install_path($type) install_path($type => $path) [version 0.28] Set or retrieve paths for specific installable elements. This is useful when you want to examine any explicit install paths specified by the user on the command line, or if you want to set the install path for a specific installable element based on another attribute like \*(C`install_base()\*(C'\fR. With no argument, it returns a reference to a hash containing all elements and their respective values. This hash should not be modified directly; use the multiple argument below form to change values. The single argument form returns the value associated with the element $type. The multiple argument form allows you to set the paths for element types. The supplied $path should be an absolute path to install elements of $type. The return value is $path. Assigning the value \*(C`undef\*(C'\fR to an element causes it to be removed. install_types() [version 0.28] Returns a list of installable types that this build knows about. These types each correspond to the name of a directory in blib/, and the list usually includes items such as \*(C`lib\*(C'\fR, \f(CW\*(C`arch\*(C'\fR, \f(CW\*(C`bin\*(C'\fR, \*(C`script\*(C'\fR, \f(CW\*(C`libdoc\*(C'\fR, \f(CW\*(C`bindoc\*(C'\fR, and if \s-1HTML\s0 documentation is to be built, \*(C`libhtml\*(C'\fR and \f(CW\*(C`binhtml\*(C'\fR. Other user-defined types may also exist. invoked_action() [version 0.28] This is the name of the original action invoked by the user. This value is set when the user invokes Build.PL, the Build script, or programmatically through the dispatch() method. It does not change as sub-actions are executed as dependencies are evaluated. To get the name of the currently executing dependency, see ‟current_action()” above. notes() notes($key) notes($key => $value) [version 0.20] The \*(C`notes()\*(C'\fR value allows you to store your own persistent information about the build, and to share that information among different entities involved in the build. See the example in the \*(C`current()\*(C'\fR method. The \*(C`notes()\*(C'\fR method is essentially a glorified hash access. With no arguments, \*(C`notes()\*(C'\fR returns the entire hash of notes. With one argument, \*(C`notes($key)\*(C'\fR returns the value associated with the given key. With two arguments, \*(C`notes($key, $value)\*(C'\fR sets the value associated with the given key to $value and returns the new value. The lifetime of the \*(C`notes\*(C'\fR data is for \*(L"a build\*(R" \- that is, the \*(C`notes\*(C'\fR hash is created when \f(CW\*(C`perl Build.PL\*(C'\fR is run (or when the \*(C`new()\*(C'\fR method is run, if the Module::Build Perl \s-1API\s0 is being used instead of called from a shell), and lasts until \*(C`perl Build.PL\*(C'\fR is run again or the \*(C`clean\*(C'\fR action is run. orig_dir() [version 0.28] Returns a string containing the working directory that was in effect before the Build script chdir()−ed into the \*(C`base_dir\*(C'\fR. This might be useful for writing wrapper tools that might need to chdir() back out. os_type() [version 0.04] If you're subclassing Module::Build and some code needs to alter its behavior based on the current platform, you may only need to know whether you're running on Windows, Unix, MacOS, VMS, etc., and not the fine-grained value of Perl's $^O variable. The \*(C`os_type()\*(C'\fR method will return a string like \*(C`Windows\*(C'\fR, \f(CW\*(C`Unix\*(C'\fR, \f(CW\*(C`MacOS\*(C'\fR, \f(CW\*(C`VMS\*(C'\fR, or whatever is appropriate. If you're running on an unknown platform, it will return \*(C`undef\*(C'\fR \- there shouldn't be many unknown platforms though. is_vmsish() is_windowsish() is_unixish() Convenience functions that return a boolean value indicating whether this platform behaves respectively like VMS, Windows, or Unix. For arbitrary reasons other platforms don't get their own such functions, at least not yet. prefix_relpaths() prefix_relpaths($installdirs) prefix_relpaths($installdirs, $type) prefix_relpaths($installdirs, $type => $path) [version 0.28] Set or retrieve the relative paths that are appended to \*(C`prefix\*(C'\fR for any installable element. This is useful if you want to set the relative install path for custom build elements. With no argument, it returns a reference to a hash containing all elements and their respective values as defined by the current \*(C`installdirs\*(C'\fR setting. With a single argument, it returns a reference to a hash containing all elements and their respective values as defined by $installdirs. The hash returned by the above calls should not be modified directly; use the three-argument below form to change values. The two argument form returns the value associated with the element $type. The multiple argument form allows you to set the paths for element types. $value must be a relative path using Unix-like paths. (A series of directories separated by slashes, e.g. \*(C`foo/bar\*(C'\fR.) The return value is a localized path based on $value. Assigning the value \*(C`undef\*(C'\fR to an element causes it to be removed. prepare_metadata() [version 0.28] This method is provided for authors to override to customize the fields of META.yml. It is passed a YAML::Node node object which can be modified as desired and then returned. E.g. package My::Builder;
use base 'Module::Build';
sub prepare_metadata {
my $self = shift;
my $node = $self−>SUPER::prepare_metadata( shift );
$node−>{custom_field} = 'foo';
return $node;
}
prereq_failures() [version 0.11] Returns a data structure containing information about any failed prerequisites (of any of the types described above), or \*(C`undef\*(C'\fR if all prerequisites are met. The data structure returned is a hash reference. The top level keys are the type of prerequisite failed, one of ‟requires”, ‟build_requires”, ‟conflicts”, or ‟recommends”. The associated values are hash references whose keys are the names of required (or conflicting) modules. The associated values of those are hash references indicating some information about the failure. For example: {
have => '0.42',
need => '0.59',
message => 'Version 0.42 is installed, but we need version 0.59',
}
or {
have => '<none>',
need => '0.59',
message => 'Prerequisite Foo isn't installed',
}
This hash has the same structure as the hash returned by the \*(C`check_installed_status()\*(C'\fR method, except that in the case of ‟conflicts” dependencies we change the ‟need” key to ‟conflicts” and construct a proper message. Examples: # Check a required dependency on Foo::Bar
if ( $build−>prereq_failures−>{requires}{Foo::Bar} ) { ...
# Check whether there were any failures
if ( $build−>prereq_failures ) { ...
# Show messages for all failures
my $failures = $build−>prereq_failures;
while (my ($type, $list) = each %$failures) {
while (my ($name, $hash) = each %$list) {
print "Failure for $name: $hash−>{message}\n";
}
}
prereq_data() [version 0.32] Returns a reference to a hash describing all prerequisites. The keys of the hash will the various prerequisite types ('requires', 'build_requires', 'configure_requires', 'recommends', or 'conflicts') and the values will references to hashes of module names and version numbers. Only prerequisites types that are defined will be included. The \*(C`prereq_data\*(C'\fR action is just a thin wrapper around the \*(C`prereq_data()\*(C'\fR method and dumps the hash as a string that can be loaded using \*(C`eval()\*(C'\fR. prereq_report() [version 0.28] Returns a human-readable (table-form) string showing all prerequisites, the versions required, and the versions actually installed. This can be useful for reviewing the configuration of your system prior to a build, or when compiling data to send for a bug report. The \*(C`prereq_report\*(C'\fR action is just a thin wrapper around the \*(C`prereq_report()\*(C'\fR method. prompt($message, $default) [version 0.12] Asks the user a question and returns their response as a string. The first argument specifies the message to display to the user (for example, "Where do you keep your money?"). The second argument, which is optional, specifies a default answer (for example, "wallet"). The user will be asked the question once. If \*(C`prompt()\*(C'\fR detects that it is not running interactively and there is nothing on STDIN or if the PERL_MM_USE_DEFAULT environment variable is set to true, the $default will be used without prompting. To prevent automated processes from blocking, the user must either set PERL_MM_USE_DEFAULT or attach something to STDIN (this can be a pipe/file containing a scripted set of answers or /dev/null.) If no $default is provided an empty string will be used instead. In non-interactive mode, the absence of $default is an error (though explicitly passing \*(C`undef()\*(C'\fR as the default is valid as of 0.27.) This method may be called as a class or object method. recommends() [version 0.21] Returns a hash reference indicating the \*(C`recommends\*(C'\fR prerequisites that were passed to the \*(C`new()\*(C'\fR method. requires() [version 0.21] Returns a hash reference indicating the \*(C`requires\*(C'\fR prerequisites that were passed to the \*(C`new()\*(C'\fR method. rscan_dir($dir, $pattern) [version 0.28] Uses \*(C`File::Find\*(C'\fR to traverse the directory \f(CW$dir\fR, returning a reference to an array of entries matching $pattern. $pattern may either be a regular expression (using \*(C`qr//\*(C'\fR or just a plain string), or a reference to a subroutine that will return true for wanted entries. If $pattern is not given, all entries will be returned. Examples: # All the *.pm files in lib/
$m−>rscan_dir('lib', qr/\.pm$/)
# All the files in blib/ that aren't *.html files
$m−>rscan_dir('blib', sub {−f $_ and not /\.html$/});
# All the files in t/
$m−>rscan_dir('t');
runtime_params() runtime_params($key) [version 0.28] The \*(C`runtime_params()\*(C'\fR method stores the values passed on the command line for valid properties (that is, any command line options for which \*(C`valid_property()\*(C'\fR returns a true value). The value on the command line may override the default value for a property, as well as any value specified in a call to \*(C`new()\*(C'\fR. This allows you to programmatically tell if \f(CW\*(C`perl Build.PL\*(C'\fR or any execution of \*(C`./Build\*(C'\fR had command line options specified that override valid properties. The \*(C`runtime_params()\*(C'\fR method is essentially a glorified read-only hash. With no arguments, \*(C`runtime_params()\*(C'\fR returns the entire hash of properties specified on the command line. With one argument, \*(C`runtime_params($key)\*(C'\fR returns the value associated with the given key. The lifetime of the \*(C`runtime_params\*(C'\fR data is for \*(L"a build\*(R" \- that is, the \*(C`runtime_params\*(C'\fR hash is created when \f(CW\*(C`perl Build.PL\*(C'\fR is run (or when the \*(C`new()\*(C'\fR method is called, if the Module::Build Perl \s-1API\s0 is being used instead of called from a shell), and lasts until \*(C`perl Build.PL\*(C'\fR is run again or the \*(C`clean\*(C'\fR action is run. script_files() [version 0.18] Returns a hash reference whose keys are the perl script files to be installed, if any. This corresponds to the \*(C`script_files\*(C'\fR parameter to the \*(C`new()\*(C'\fR method. With an optional argument, this parameter may be set dynamically. For backward compatibility, the \*(C`scripts()\*(C'\fR method does exactly the same thing as \*(C`script_files()\*(C'\fR. \f(CW\*(C`scripts()\*(C'\fR is deprecated, but it will stay around for several versions to give people time to transition. up_to_date($source_file, $derived_file) up_to_date(\@source_files, \@derived_files) [version 0.20] This method can be used to compare a set of source files to a set of derived files. If any of the source files are newer than any of the derived files, it returns false. Additionally, if any of the derived files do not exist, it returns false. Otherwise it returns true. The arguments may be either a scalar or an array reference of file names. y_n($message, $default) [version 0.12] Asks the user a yes/no question using \*(C`prompt()\*(C'\fR and returns true or false accordingly. The user will be asked the question repeatedly until they give an answer that looks like ‟yes” or ‟no”. The first argument specifies the message to display to the user (for example, "Shall I invest your money for you?"), and the second argument specifies the default answer (for example, "y"). Note that the default is specified as a string like "y" or "n", and the return value is a Perl boolean value like 1 or 0. I thought about this for a while and this seemed like the most useful way to do it. This method may be called as a class or object method.
Autogenerated AccessorsIn addition to the aforementioned methods, there are also some get/set accessor methods for the following properties: PL_files() allow_mb_mismatch() auto_configure_requires() autosplit() base_dir() bindoc_dirs() blib() build_bat() build_class() build_elements() build_requires() build_script() c_source() config_dir() configure_requires() conflicts() create_license() create_makefile_pl() create_packlist() create_readme() debug() debugger() destdir() get_options() html_css() include_dirs() install_base() installdirs() libdoc_dirs() license() magic_number() mb_version() meta_add() meta_merge() metafile() module_name() orig_dir() perl() pm_files() pod_files() pollute() prefix() prereq_action_types() program_name() quiet() recommends() recurse_into() recursive_test_files() requires() scripts() sign() tap_harness_args() test_file_exts() use_rcfile() use_tap_harness() verbose() xs_files()
MODULE METADATAIf you would like to add other useful metadata, \*(C`Module::Build\*(C'\fR supports this with the \*(C`meta_add\*(C'\fR and \f(CW\*(C`meta_merge\*(C'\fR arguments to ‟new”. The authoritative list of supported metadata can be found at <http://module−build.sourceforge.net/META−spec−current.html>, but for convenience − here are a few of the more useful ones: keywords For describing the distribution using keyword (or ‟tags”) in order to make CPAN.org indexing and search more efficient and useful. See <http://module−build.sourceforge.net/META−spec−current.html#keywords>. resources A list of additional resources available for users of the distribution. This can include links to a homepage on the web, a bug tracker, the repository location, a even subscription page for the distribution mailing list. See <http://module−build.sourceforge.net/META−spec−current.html#resources>.
AUTHORKen Williams <kwilliams@cpan.org>
COPYRIGHTCopyright (c) 2001−2006 Ken Williams. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSOperl (1), Module::Build(3), Module::Build::Authoring(3), Module::Build::Cookbook(3), ExtUtils::MakeMaker(3), YAML(3) META.yml Specification: <http://module−build.sourceforge.net/META−spec−current.html> 0
Johanes Gumabo
Data Size : 217,412 byte
man-Module::Build::API.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 170,466
Visitor ID : :
Visitor IP : 3.147.77.119 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Module::Build::API.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Module::Build::API.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Module::Build::API.3pm|41|br══─}─══|'br══─}─══
) (htmlprn|149|Module::Build::API.3pm|41|'br══─}─══ |'br══─}─══
) (rof_nr_x|149|Module::Build::API.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (rof_unit_scale_px|41|Module::Build::API.3pm|51/52|F|.ie \nF ══─{─══. de IX
) (rof_if|19|Module::Build::API.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (htmlprn|149|Module::Build::API.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX
) (rof_escape_sequence|91|Module::Build::API.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2"
) (parse_manual_page_|249|Module::Build::API.3pm|57|══─}─══|.══─}─══
) (htmlprn|149|Module::Build::API.3pm|57|.══─}─══ |.══─}─══
) (rof_escape_sequence|91|Module::Build::API.3pm|136|\*(C`Module::Build\*(C'\fR. |I list here some of the most important methods in \f(CW\*(C`Module::Build\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|138|\*(C`Module::Build\*(C'\fR. But since one of the reasons I created |subclass \f(CW\*(C`Module::Build\*(C'\fR. But since one of the reasons I created
) (rof_escape_sequence|91|Module::Build::API.3pm|149|\*(C`Module::Build\*(C'\fR object representing the current build. You can use |\&\f(CW\*(C`Module::Build\*(C'\fR object representing the current build. You can use
) (rof_escape_sequence|91|Module::Build::API.3pm|153|\*(C`perl Build.PL\*(C'\fR, then use their answer |the user a question during \f(CW\*(C`perl Build.PL\*(C'\fR, then use their answer
) (rof_escape_sequence|91|Module::Build::API.3pm|168|\*(C`current()\*(C'\fR method is currently implemented, there may be |The way the \f(CW\*(C`current()\*(C'\fR method is currently implemented, there may be
) (rof_escape_sequence|91|Module::Build::API.3pm|170|\*(C`t/colortest.t\*(C'\fR. It is our goal to minimize these differences |one in \f(CW\*(C`t/colortest.t\*(C'\fR. It is our goal to minimize these differences
) (rof_escape_sequence|91|Module::Build::API.3pm|174|\*(C`current()\*(C'\fR will |One important caveat: in its current implementation, \f(CW\*(C`current()\*(C'\fR will
) (rof_escape_sequence|91|Module::Build::API.3pm|176|\*(C`Module::Build\*(C'\fR was invoked from. |\&\f(CW\*(C`Module::Build\*(C'\fR was invoked from.
) (rof_escape_sequence|91|Module::Build::API.3pm|192|\*(C`clean\*(C'\fR action |An array reference of files to be cleaned up when the \f(CW\*(C`clean\*(C'\fR action
) (rof_escape_sequence|91|Module::Build::API.3pm|211|\*(C`auto_features\*(C'\fR like this: |PostgreSQL databases, you might use \f(CW\*(C`auto_features\*(C'\fR like this:
) (rof_escape_sequence|91|Module::Build::API.3pm|243|\*(C`autosplit\*(C'\fR argument specifies a file which should be run |An optional \f(CW\*(C`autosplit\*(C'\fR argument specifies a file which should be run
) (rof_escape_sequence|91|Module::Build::API.3pm|261|\*(--that is, your subclass requires modules that may not be |problem\*(--that is, your subclass requires modules that may not be
) (rof_escape_sequence|91|Module::Build::API.3pm|262|\*(C`perl Build.PL\*(C'\fR is executed, but you've listed in |installed when \f(CW\*(C`perl Build.PL\*(C'\fR is executed, but you've listed in
) (rof_escape_sequence|91|Module::Build::API.3pm|263|\*(C`./Build\*(C'\fR is |\&\*(L"build_requires\*(R" so that they should be available when \f(CW\*(C`./Build\*(C'\fR is
) (rof_escape_sequence|91|Module::Build::API.3pm|282|\*(C`install\*(C'\fR action, just like \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR does. |file during the \f(CW\*(C`install\*(C'\fR action, just like \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR does.
) (rof_escape_sequence|91|Module::Build::API.3pm|283|\*(C`arch\*(C'\fR installation |The file is created in a subdirectory of the \f(CW\*(C`arch\*(C'\fR installation
) (rof_escape_sequence|91|Module::Build::API.3pm|294|\*(C`c_source\*(C'\fR argument specifies a directory which contains |An optional \f(CW\*(C`c_source\*(C'\fR argument specifies a directory which contains
) (rof_escape_sequence|91|Module::Build::API.3pm|295|\*(C`.c\*(C'\fR |C source files that the rest of the build may depend on. Any \f(CW\*(C`.c\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|304|\*(C`Module::Build\*(C'\fR (or some higher-level tool) will |given module. \f(CW\*(C`Module::Build\*(C'\fR (or some higher-level tool) will
) (rof_escape_sequence|91|Module::Build::API.3pm|317|\*(C`Software::License\*(C'\fR on the author's machine, and further requires |\&\f(CW\*(C`Software::License\*(C'\fR on the author's machine, and further requires
) (rof_escape_sequence|91|Module::Build::API.3pm|318|\*(C`license\*(C'\fR parameter specifies a license that it knows about. |that the \f(CW\*(C`license\*(C'\fR parameter specifies a license that it knows about.
) (rof_escape_sequence|91|Module::Build::API.3pm|323|\*(C`Module::Build::Compat\*(C'\fR during the |This parameter lets you use \f(CW\*(C`Module::Build::Compat\*(C'\fR during the
) (rof_escape_sequence|91|Module::Build::API.3pm|324|\*(C`distdir\*(C'\fR (or \f(CW\*(C`dist\*(C'\fR) action to automatically create a Makefile.PL |\&\f(CW\*(C`distdir\*(C'\fR (or \f(CW\*(C`dist\*(C'\fR) action to automatically create a Makefile.PL
) (rof_escape_sequence|91|Module::Build::API.3pm|325|\*(C`ExtUtils::MakeMaker\*(C'\fR. The parameter's value |for compatibility with \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR. The parameter's value
) (rof_escape_sequence|91|Module::Build::API.3pm|334|\*(C`Pod::Text\*(C'\fR (or \f(CW\*(C`Pod::Readme\*(C'\fR if it's installed) on the file |use \f(CW\*(C`Pod::Text\*(C'\fR (or \f(CW\*(C`Pod::Readme\*(C'\fR if it's installed) on the file
) (rof_escape_sequence|91|Module::Build::API.3pm|335|\*(C`dist_version_from\*(C'\fR and put the result in the \fI\s-1README\s0\fR |indicated by \f(CW\*(C`dist_version_from\*(C'\fR and put the result in the \fI\s-1README\s0\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|348|\*(C`Module::Build\*(C'\fR looks in the \s-1POD\s0 of the module from which it gets |then \f(CW\*(C`Module::Build\*(C'\fR looks in the \s-1POD\s0 of the module from which it gets
) (rof_escape_sequence|91|Module::Build::API.3pm|350|\*(C`\es+\-\es+(.+)\*(C'\fR, |\&\s-1NAME\s0\*(R", then it looks for the first line matching \f(CW\*(C`\es+\-\es+(.+)\*(C'\fR,
) (rof_escape_sequence|91|Module::Build::API.3pm|359|\*(C`Module::Build\*(C'\fR looks at |\&\s-1PPD\s0 files. If this is not specified, then \f(CW\*(C`Module::Build\*(C'\fR looks at
) (rof_escape_sequence|91|Module::Build::API.3pm|368|\*(C`module_name\*(C'\fR to set \f(CW\*(C`dist_name\*(C'\fR to |set this directly, they can use \f(CW\*(C`module_name\*(C'\fR to set \f(CW\*(C`dist_name\*(C'\fR to
) (rof_escape_sequence|91|Module::Build::API.3pm|370|\*(C`libwww\-perl\*(C'\fR or \f(CW\*(C`bioperl\*(C'\fR have names that don't correspond directly |\&\f(CW\*(C`libwww\-perl\*(C'\fR or \f(CW\*(C`bioperl\*(C'\fR have names that don't correspond directly
) (rof_escape_sequence|91|Module::Build::API.3pm|371|\*(C`dist_name\*(C'\fR can be set independently. |to a module name, so \f(CW\*(C`dist_name\*(C'\fR can be set independently.
) (rof_escape_sequence|91|Module::Build::API.3pm|389|\*(C`CPAN.pm\*(C'\fR. It involves finding |rules as ExtUtils::MakeMaker and \f(CW\*(C`CPAN.pm\*(C'\fR. It involves finding
) (rof_escape_sequence|91|Module::Build::API.3pm|416|\*(C`Module::Build\*(C'\fR doesn't actually do anything with this flag |Currently \f(CW\*(C`Module::Build\*(C'\fR doesn't actually do anything with this flag
) (rof_escape_sequence|91|Module::Build::API.3pm|417|\*(C`CPAN.pm\*(C'\fR to do something useful |\&\- it's up to higher-level tools like \f(CW\*(C`CPAN.pm\*(C'\fR to do something useful
) (rof_escape_sequence|91|Module::Build::API.3pm|460|\*(C`get_options\*(C'\fR parameter to pass in a hash |such cases, use the \f(CW\*(C`get_options\*(C'\fR parameter to pass in a hash
) (rof_escape_sequence|91|Module::Build::API.3pm|463|\*(C`Module::Build\*(C'\fR's own |specifications before they're passed on to \f(CW\*(C`Module::Build\*(C'\fR's own
) (rof_escape_sequence|91|Module::Build::API.3pm|471|\*(C`=s\*(C'\fR for strings, |its documentation for a complete list. Typical types are \f(CW\*(C`=s\*(C'\fR for strings,
) (rof_escape_sequence|91|Module::Build::API.3pm|472|\*(C`+\*(C'\fR for additive options, and \f(CW\*(C`!\*(C'\fR for negatable options. If the |\&\f(CW\*(C`+\*(C'\fR for additive options, and \f(CW\*(C`!\*(C'\fR for negatable options. If the
) (rof_escape_sequence|91|Module::Build::API.3pm|480|\*(C`args()\*(C'\fR method. |hash returned by the \f(CW\*(C`args()\*(C'\fR method.
) (rof_escape_sequence|91|Module::Build::API.3pm|485|\*(C`args()\*(C'\fR. |\&\f(CW\*(C`args()\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|491|\*(C`args()\*(C'\fR. For example: |hash returned by \f(CW\*(C`args()\*(C'\fR. For example:
) (rof_escape_sequence|91|Module::Build::API.3pm|535|\*(C`install_path\*(C'\fR parameter: |\&\f(CW\*(C`install_path\*(C'\fR parameter:
) (rof_escape_sequence|91|Module::Build::API.3pm|552|\*(C`core\*(C'\fR, \f(CW\*(C`site\*(C'\fR, |as determined by \fIConfig.pm\fR. Valid values are: \f(CW\*(C`core\*(C'\fR, \f(CW\*(C`site\*(C'\fR,
) (rof_escape_sequence|91|Module::Build::API.3pm|553|\*(C`vendor\*(C'\fR. The default is \f(CW\*(C`site\*(C'\fR. See |\&\f(CW\*(C`vendor\*(C'\fR. The default is \f(CW\*(C`site\*(C'\fR. See
) (rof_escape_sequence|91|Module::Build::API.3pm|625|\*(C`unknown\*(C'\fR if you don't wish to |You may also use a license type of \f(CW\*(C`unknown\*(C'\fR if you don't wish to
) (rof_escape_sequence|91|Module::Build::API.3pm|641|\*(C`distmeta\*(C'\fR action. Any existing entries with the same |during the \f(CW\*(C`distmeta\*(C'\fR action. Any existing entries with the same
) (rof_escape_sequence|91|Module::Build::API.3pm|650|\*(C`distmeta\*(C'\fR action. Any existing entries with the |file during the \f(CW\*(C`distmeta\*(C'\fR action. Any existing entries with the
) (rof_escape_sequence|91|Module::Build::API.3pm|653|\*(C`meta_add\*(C'\fR and \f(CW\*(C`meta_merge\*(C'\fR is their |The only difference between \f(CW\*(C`meta_add\*(C'\fR and \f(CW\*(C`meta_merge\*(C'\fR is their
) (rof_escape_sequence|91|Module::Build::API.3pm|654|\*(C`meta_add\*(C'\fR will |behavior on hash-valued and array-valued entries: \f(CW\*(C`meta_add\*(C'\fR will
) (rof_escape_sequence|91|Module::Build::API.3pm|656|\*(C`meta_merge\*(C'\fR will merge the supplied data into the existing hash or |\&\f(CW\*(C`meta_merge\*(C'\fR will merge the supplied data into the existing hash or
) (rof_escape_sequence|91|Module::Build::API.3pm|664|\*(C`module_name\*(C'\fR is a shortcut for setting default values of |The \f(CW\*(C`module_name\*(C'\fR is a shortcut for setting default values of
) (rof_escape_sequence|91|Module::Build::API.3pm|665|\*(C`dist_name\*(C'\fR and \f(CW\*(C`dist_version_from\*(C'\fR, reflecting the fact that the |\&\f(CW\*(C`dist_name\*(C'\fR and \f(CW\*(C`dist_version_from\*(C'\fR, reflecting the fact that the
) (rof_escape_sequence|91|Module::Build::API.3pm|667|\*(C`module_name\*(C'\fR to \f(CW\*(C`Foo::Bar\*(C'\fR, then |For instance, if you set \f(CW\*(C`module_name\*(C'\fR to \f(CW\*(C`Foo::Bar\*(C'\fR, then
) (rof_escape_sequence|91|Module::Build::API.3pm|668|\*(C`dist_name\*(C'\fR will default to \f(CW\*(C`Foo\-Bar\*(C'\fR and \f(CW\*(C`dist_version_from\*(C'\fR will |\&\f(CW\*(C`dist_name\*(C'\fR will default to \f(CW\*(C`Foo\-Bar\*(C'\fR and \f(CW\*(C`dist_version_from\*(C'\fR will
) (rof_escape_sequence|91|Module::Build::API.3pm|669|\*(C`lib/Foo/Bar.pm\*(C'\fR. \f(CW\*(C`dist_version_from\*(C'\fR will in turn be |default to \f(CW\*(C`lib/Foo/Bar.pm\*(C'\fR. \f(CW\*(C`dist_version_from\*(C'\fR will in turn be
) (rof_escape_sequence|91|Module::Build::API.3pm|670|\*(C`dist_version\*(C'\fR. |used to set \f(CW\*(C`dist_version\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|672|\*(C`module_name\*(C'\fR won't override a \f(CW\*(C`dist_*\*(C'\fR parameter you |Setting \f(CW\*(C`module_name\*(C'\fR won't override a \f(CW\*(C`dist_*\*(C'\fR parameter you
) (rof_escape_sequence|91|Module::Build::API.3pm|678|\*(C`.PL\*(C'\fR files in your |An optional parameter specifying a set of \f(CW\*(C`.PL\*(C'\fR files in your
) (rof_escape_sequence|91|Module::Build::API.3pm|683|\*(C`lib/Foo/Bar.pm.PL\*(C'\fR might create the file \f(CW\*(C`lib/Foo/Bar.pm\*(C'\fR. |\&\f(CW\*(C`lib/Foo/Bar.pm.PL\*(C'\fR might create the file \f(CW\*(C`lib/Foo/Bar.pm\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|685|\*(C`.PL\*(C'\fR files as hash keys, and the |The files are specified with the \f(CW\*(C`.PL\*(C'\fR files as hash keys, and the
) (rof_escape_sequence|91|Module::Build::API.3pm|700|\*(C`.PL\*(C'\fR scripts don't create any files, or if they create files |If your \f(CW\*(C`.PL\*(C'\fR scripts don't create any files, or if they create files
) (rof_escape_sequence|91|Module::Build::API.3pm|732|\*(C`.pm\*(C'\fR files in this |An optional parameter specifying the set of \f(CW\*(C`.pm\*(C'\fR files in this
) (rof_escape_sequence|91|Module::Build::API.3pm|739|\*(C`MakeMaker\*(C'\fR distribution for a |For instance, if you have an old-style \f(CW\*(C`MakeMaker\*(C'\fR distribution for a
) (rof_escape_sequence|91|Module::Build::API.3pm|740|\*(C`Foo::Bar\*(C'\fR and a \fIBar.pm\fR file at the top level of the |module called \f(CW\*(C`Foo::Bar\*(C'\fR and a \fIBar.pm\fR file at the top level of the
) (rof_escape_sequence|91|Module::Build::API.3pm|741|\*(C`Build.PL\*(C'\fR like |distribution, you could specify your layout in your \f(CW\*(C`Build.PL\*(C'\fR like
) (rof_escape_sequence|91|Module::Build::API.3pm|753|\*(C`lib/\*(C'\fR, because this is where |Note that the values should include \f(CW\*(C`lib/\*(C'\fR, because this is where
) (rof_escape_sequence|91|Module::Build::API.3pm|762|\*(C`pm_files\*(C'\fR, but used for specifying the set of \f(CW\*(C`.pod\*(C'\fR |Just like \f(CW\*(C`pm_files\*(C'\fR, but used for specifying the set of \f(CW\*(C`.pod\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|787|\*(C`Module::Build\*(C'\fR does not search subdirectories when looking |Normally, \f(CW\*(C`Module::Build\*(C'\fR does not search subdirectories when looking
) (rof_escape_sequence|91|Module::Build::API.3pm|794|\*(C`requires\*(C'\fR argument specifies any module prerequisites |An optional \f(CW\*(C`requires\*(C'\fR argument specifies any module prerequisites
) (rof_escape_sequence|91|Module::Build::API.3pm|797|\*(C`Module::Build\*(C'\fR doesn't actually \fIrequire\fR the |One note: currently \f(CW\*(C`Module::Build\*(C'\fR doesn't actually \fIrequire\fR the
) (rof_escape_sequence|91|Module::Build::API.3pm|807|\*(C`requires\*(C'\fR is \f(CW\*(C`prereq\*(C'\fR, to help succour people |A synonym for \f(CW\*(C`requires\*(C'\fR is \f(CW\*(C`prereq\*(C'\fR, to help succour people
) (rof_escape_sequence|91|Module::Build::API.3pm|808|\*(C`ExtUtils::MakeMaker\*(C'\fR. The \f(CW\*(C`requires\*(C'\fR term is |transitioning from \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR. The \f(CW\*(C`requires\*(C'\fR term is
) (rof_escape_sequence|91|Module::Build::API.3pm|809|\*(C`prereq\*(C'\fR term will remain valid in future |preferred, but the \f(CW\*(C`prereq\*(C'\fR term will remain valid in future
) (rof_escape_sequence|91|Module::Build::API.3pm|828|\*(C`scripts\*(C'\fR |For backward compatibility, you may use the parameter \f(CW\*(C`scripts\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|829|\*(C`script_files\*(C'\fR. Please consider this usage deprecated, |instead of \f(CW\*(C`script_files\*(C'\fR. Please consider this usage deprecated,
) (rof_escape_sequence|91|Module::Build::API.3pm|841|\*(C`Module::Signature\*(C'\fR installed on your system. |true if you have \f(CW\*(C`Module::Signature\*(C'\fR installed on your system.
) (rof_escape_sequence|91|Module::Build::API.3pm|847|\*(C`Test::Harness\*(C'\fR\-style regression tests to be run during the \f(CW\*(C`test\*(C'\fR |\&\f(CW\*(C`Test::Harness\*(C'\fR\-style regression tests to be run during the \f(CW\*(C`test\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|851|\*(C`glob()\*(C'\fR pattern |array reference), that string will be treated as a \f(CW\*(C`glob()\*(C'\fR pattern
) (rof_escape_sequence|91|Module::Build::API.3pm|856|\*(C`*.t\*(C'\fR in the \fIt/\fR subdirectory. If the \f(CW\*(C`recursive_test_files\*(C'\fR |\&\f(CW\*(C`*.t\*(C'\fR in the \fIt/\fR subdirectory. If the \f(CW\*(C`recursive_test_files\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|857|\*(C`t/\*(C'\fR directory will be scanned recursively |property is true, then the \f(CW\*(C`t/\*(C'\fR directory will be scanned recursively
) (rof_escape_sequence|91|Module::Build::API.3pm|858|\*(C`*.t\*(C'\fR files. |for \f(CW\*(C`*.t\*(C'\fR files.
) (rof_escape_sequence|91|Module::Build::API.3pm|866|\*(C`tap_harness_args\*(C'\fR is |\&\*(L"build_requires\*(R". Implicitly set to a true value if \f(CW\*(C`tap_harness_args\*(C'\fR is
) (rof_escape_sequence|91|Module::Build::API.3pm|875|\*(C`use_tap_harness\*(C'\fR to a true value. You |this parameter will implicitly set \f(CW\*(C`use_tap_harness\*(C'\fR to a true value. You
) (rof_escape_sequence|91|Module::Build::API.3pm|882|\*(C`pm_files\*(C'\fR, but used for specifying the set of \f(CW\*(C`.xs\*(C'\fR |Just like \f(CW\*(C`pm_files\*(C'\fR, but used for specifying the set of \f(CW\*(C`.xs\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|894|\*(C`Module::Build\*(C'\fR object to the caller. Any key-value |resulting \f(CW\*(C`Module::Build\*(C'\fR object to the caller. Any key-value
) (rof_escape_sequence|91|Module::Build::API.3pm|895|\*(C`new_from_context()\*(C'\fR are essentially like |arguments given to \f(CW\*(C`new_from_context()\*(C'\fR are essentially like
) (rof_escape_sequence|91|Module::Build::API.3pm|897|\*(C`verbose => 1\*(C'\fR to this method to turn on |you could pass \f(CW\*(C`verbose => 1\*(C'\fR to this method to turn on
) (rof_escape_sequence|91|Module::Build::API.3pm|904|\*(C`Build\*(C'\fR script. The \f(CW\*(C`new()\*(C'\fR method is only |the auto-generated \f(CW\*(C`Build\*(C'\fR script. The \f(CW\*(C`new()\*(C'\fR method is only
) (rof_escape_sequence|91|Module::Build::API.3pm|905|\*(C`perl Build.PL\*(C'\fR. Thereafter, when |called once, when the user runs \f(CW\*(C`perl Build.PL\*(C'\fR. Thereafter, when
) (rof_escape_sequence|91|Module::Build::API.3pm|906|\*(C`Build test\*(C'\fR or another action, the \f(CW\*(C`Module::Build\*(C'\fR |the user runs \f(CW\*(C`Build test\*(C'\fR or another action, the \f(CW\*(C`Module::Build\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|907|\*(C`resume()\*(C'\fR method to re-instantiate with |object is created using the \f(CW\*(C`resume()\*(C'\fR method to re-instantiate with
) (rof_escape_sequence|91|Module::Build::API.3pm|908|\*(C`new()\*(C'\fR. |the settings given earlier to \f(CW\*(C`new()\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|913|\*(C`Module::Build\*(C'\fR subclass on the fly, as described |This creates a new \f(CW\*(C`Module::Build\*(C'\fR subclass on the fly, as described
) (rof_escape_sequence|91|Module::Build::API.3pm|915|\*(C`class\*(C'\fR or \f(CW\*(C`code\*(C'\fR parameter, or both. The |must provide either a \f(CW\*(C`class\*(C'\fR or \f(CW\*(C`code\*(C'\fR parameter, or both. The
) (rof_escape_sequence|91|Module::Build::API.3pm|916|\*(C`class\*(C'\fR parameter indicates the name to use for the new subclass, and |\&\f(CW\*(C`class\*(C'\fR parameter indicates the name to use for the new subclass, and
) (rof_escape_sequence|91|Module::Build::API.3pm|917|\*(C`MyModuleBuilder\*(C'\fR. The \f(CW\*(C`code\*(C'\fR parameter specifies Perl |defaults to \f(CW\*(C`MyModuleBuilder\*(C'\fR. The \f(CW\*(C`code\*(C'\fR parameter specifies Perl
) (rof_escape_sequence|91|Module::Build::API.3pm|942|\*(C`module_name\*(C'\fR and \f(CW\*(C`license\*(C'\fR, are defined using this class method. |\&\f(CW\*(C`module_name\*(C'\fR and \f(CW\*(C`license\*(C'\fR, are defined using this class method.
) (rof_escape_sequence|91|Module::Build::API.3pm|944|\*(C`add_property()\*(C'\fR is always the name of the property. |The first argument to \f(CW\*(C`add_property()\*(C'\fR is always the name of the property.
) (rof_escape_sequence|91|Module::Build::API.3pm|964|\*(C`check\*(C'\fR code reference |the \f(CW$_\fR variable. If the value is correct, the \f(CW\*(C`check\*(C'\fR code reference
) (rof_escape_sequence|91|Module::Build::API.3pm|966|\*(C`property_error()\*(C'\fR and returns false. |\&\f(CW\*(C`property_error()\*(C'\fR and returns false.
) (rof_escape_sequence|91|Module::Build::API.3pm|994|\*(C`check\*(C'\fR has been specified for the property, it will be |In either case, if a \f(CW\*(C`check\*(C'\fR has been specified for the property, it will be
) (rof_escape_sequence|91|Module::Build::API.3pm|1019|\*(C`process_foo_files()\*(C'\fR. |\&\f(CW\*(C`process_foo_files()\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|1027|\*(C`$self\->add_to_cleanup(@patterns)\*(C'\fR to tell |You may call \f(CW\*(C`$self\->add_to_cleanup(@patterns)\*(C'\fR to tell
) (rof_escape_sequence|91|Module::Build::API.3pm|1028|\*(C`Module::Build\*(C'\fR that certain files should be removed when the user |\&\f(CW\*(C`Module::Build\*(C'\fR that certain files should be removed when the user
) (rof_escape_sequence|91|Module::Build::API.3pm|1029|\*(C`Build clean\*(C'\fR action. The arguments to the method are |performs the \f(CW\*(C`Build clean\*(C'\fR action. The arguments to the method are
) (rof_escape_sequence|91|Module::Build::API.3pm|1030|\*(C`glob()\*(C'\fR function, specified |patterns suitable for passing to Perl's \f(CW\*(C`glob()\*(C'\fR function, specified
) (rof_escape_sequence|91|Module::Build::API.3pm|1068|\*(C`lib/auto\*(C'\fR directory inside \f(CW$to\fR. \f(CW$to\fR is |output to the \f(CW\*(C`lib/auto\*(C'\fR directory inside \f(CW$to\fR. \f(CW$to\fR is
) (rof_escape_sequence|91|Module::Build::API.3pm|1069|\*(C`blib/\*(C'\fR directory. |typically the \f(CW\*(C`blib/\*(C'\fR directory.
) (rof_escape_sequence|91|Module::Build::API.3pm|1075|\*(C`Build.PL\*(C'\fR script and the \f(CW\*(C`lib\*(C'\fR directory can be |i.e. where the \f(CW\*(C`Build.PL\*(C'\fR script and the \f(CW\*(C`lib\*(C'\fR directory can be
) (rof_escape_sequence|91|Module::Build::API.3pm|1077|\*(C`Build\*(C'\fR script will \f(CW\*(C`chdir()\*(C'\fR into this directory as |because the \f(CW\*(C`Build\*(C'\fR script will \f(CW\*(C`chdir()\*(C'\fR into this directory as
) (rof_escape_sequence|91|Module::Build::API.3pm|1083|\*(C`build_requires\*(C'\fR |Returns a hash reference indicating the \f(CW\*(C`build_requires\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|1084|\*(C`new()\*(C'\fR method. |prerequisites that were passed to the \f(CW\*(C`new()\*(C'\fR method.
) (rof_escape_sequence|91|Module::Build::API.3pm|1121|\*(C`have\*(C'\fR value |If no version of \f(CW$module\fR is currently installed, the \f(CW\*(C`have\*(C'\fR value
) (rof_escape_sequence|91|Module::Build::API.3pm|1122|\*(C`have\*(C'\fR value will |will be the string \f(CW""\fR. Otherwise the \f(CW\*(C`have\*(C'\fR value will
) (rof_escape_sequence|91|Module::Build::API.3pm|1125|\*(C`have\*(C'\fR value will be \f(CW\*(C`undef\*(C'\fR \- this is why we don't use \f(CW\*(C`undef\*(C'\fR |the \f(CW\*(C`have\*(C'\fR value will be \f(CW\*(C`undef\*(C'\fR \- this is why we don't use \f(CW\*(C`undef\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|1129|\*(C`$build\->check_installed_status($module, $version)\*(C'\fR) |(\f(CW\*(C`$build\->check_installed_status($module, $version)\*(C'\fR)
) (rof_escape_sequence|91|Module::Build::API.3pm|1131|\*(C`Module::Build\->check_installed_status($module, $version)\*(C'\fR). |(\f(CW\*(C`Module::Build\->check_installed_status($module, $version)\*(C'\fR).
) (rof_escape_sequence|91|Module::Build::API.3pm|1163|\*(C`check_installed_status\*(C'\fR if you |In general you might prefer to use \f(CW\*(C`check_installed_status\*(C'\fR if you
) (rof_escape_sequence|91|Module::Build::API.3pm|1172|\*(C`!=\*(C'\fR or |\&\f(CW$op\fR, which should be one of Perl's numeric operators like \f(CW\*(C`!=\*(C'\fR or
) (rof_escape_sequence|91|Module::Build::API.3pm|1173|\*(C`>=\*(C'\fR or the like. We do at least a halfway-decent job of |\&\f(CW\*(C`>=\*(C'\fR or the like. We do at least a halfway-decent job of
) (rof_escape_sequence|91|Module::Build::API.3pm|1174|\*(C`0.27_02\*(C'\fR, but |handling versions that aren't strictly numeric, like \f(CW\*(C`0.27_02\*(C'\fR, but
) (rof_escape_sequence|91|Module::Build::API.3pm|1178|\*(C`version.pm\*(C'\fR. |out to \f(CW\*(C`version.pm\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|1191|\*(C`Config.pm\*(C'\fR hash, including any changes the author or user |key in the \f(CW\*(C`Config.pm\*(C'\fR hash, including any changes the author or user
) (rof_escape_sequence|91|Module::Build::API.3pm|1195|\*(C`config($key)\*(C'\fR. |callers of \f(CW\*(C`config($key)\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|1212|\*(C`Data::Dumper\*(C'\fR. For instance, if you write a |serializable with \f(CW\*(C`Data::Dumper\*(C'\fR. For instance, if you write a
) (rof_escape_sequence|91|Module::Build::API.3pm|1214|\*(C`mysql_connect\*(C'\fR and |configuration variables called \f(CW\*(C`mysql_connect\*(C'\fR and
) (rof_escape_sequence|91|Module::Build::API.3pm|1215|\*(C`postgres_connect\*(C'\fR, and set each to an array of connection parameters |\&\f(CW\*(C`postgres_connect\*(C'\fR, and set each to an array of connection parameters
) (rof_escape_sequence|91|Module::Build::API.3pm|1216|\*(C`DBI\->connect()\*(C'\fR. |for \f(CW\*(C`DBI\->connect()\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|1220|\*(C`...::ConfigData\*(C'\fR module, as |installation via the generated \f(CW\*(C`...::ConfigData\*(C'\fR module, as
) (rof_escape_sequence|91|Module::Build::API.3pm|1221|\*(C`...::ConfigData\->config($name)\*(C'\fR. |\&\f(CW\*(C`...::ConfigData\->config($name)\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|1223|\*(C`config_data()\*(C'\fR methods represent |The \fIfeature()\fR and \f(CW\*(C`config_data()\*(C'\fR methods represent
) (rof_escape_sequence|91|Module::Build::API.3pm|1230|\*(C`conflicts\*(C'\fR prerequisites |Returns a hash reference indicating the \f(CW\*(C`conflicts\*(C'\fR prerequisites
) (rof_escape_sequence|91|Module::Build::API.3pm|1231|\*(C`new()\*(C'\fR method. |that were passed to the \f(CW\*(C`new()\*(C'\fR method.
) (rof_escape_sequence|91|Module::Build::API.3pm|1246|\*(C`from\*(C'\fR parameter and copies it to the file in |Takes the file in the \f(CW\*(C`from\*(C'\fR parameter and copies it to the file in
) (rof_escape_sequence|91|Module::Build::API.3pm|1247|\*(C`to\*(C'\fR parameter, or the directory in the \f(CW\*(C`to_dir\*(C'\fR parameter, if |the \f(CW\*(C`to\*(C'\fR parameter, or the directory in the \f(CW\*(C`to_dir\*(C'\fR parameter, if
) (rof_escape_sequence|91|Module::Build::API.3pm|1250|\*(C`from\*(C'\fR will be copied into \f(CW\*(C`to_dir\*(C'\fR; an optional \f(CW\*(C`flatten\*(C'\fR |\&\f(CW\*(C`from\*(C'\fR will be copied into \f(CW\*(C`to_dir\*(C'\fR; an optional \f(CW\*(C`flatten\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|1251|\*(C`to_dir\*(C'\fR without doing so. |parameter will copy into \f(CW\*(C`to_dir\*(C'\fR without doing so.
) (rof_escape_sequence|91|Module::Build::API.3pm|1253|\*(C`undef\*(C'\fR if nothing |Returns the path to the destination file, or \f(CW\*(C`undef\*(C'\fR if nothing
) (rof_escape_sequence|91|Module::Build::API.3pm|1265|\*(C`Build\*(C'\fR in the current directory |Creates an executable script called \f(CW\*(C`Build\*(C'\fR in the current directory
) (rof_escape_sequence|91|Module::Build::API.3pm|1268|\*(C`ExtUtils::MakeMaker\*(C'\fR. This method also creates some temporary |by \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR. This method also creates some temporary
) (rof_escape_sequence|91|Module::Build::API.3pm|1269|\*(C`_build/\*(C'\fR. Both of these will be removed |data in a directory called \f(CW\*(C`_build/\*(C'\fR. Both of these will be removed
) (rof_escape_sequence|91|Module::Build::API.3pm|1270|\*(C`realclean\*(C'\fR action is performed. |when the \f(CW\*(C`realclean\*(C'\fR action is performed.
) (rof_escape_sequence|91|Module::Build::API.3pm|1272|\*(C`_build/\*(C'\fR is a \fI_build/prereqs\fR file |Among the files created in \f(CW\*(C`_build/\*(C'\fR is a \fI_build/prereqs\fR file
) (rof_escape_sequence|91|Module::Build::API.3pm|1274|\*(C`eval()\*(C'\fR\-ed to obtain the authoritative |of hashes. This file may be \f(CW\*(C`eval()\*(C'\fR\-ed to obtain the authoritative
) (rof_escape_sequence|91|Module::Build::API.3pm|1280|\*(C`$self\->{properties}{requires}\*(C'\fR (etc.) |structure of the internal \f(CW\*(C`$self\->{properties}{requires}\*(C'\fR (etc.)
) (rof_escape_sequence|91|Module::Build::API.3pm|1309|\*(C`invoke_actions_unless_already_invoked()\*(C'\fR or something, but for |\&\f(CW\*(C`invoke_actions_unless_already_invoked()\*(C'\fR or something, but for
) (rof_escape_sequence|91|Module::Build::API.3pm|1311|\*(C`make\*(C'\fR\-like dependency terms when we created this method. |\&\f(CW\*(C`make\*(C'\fR\-like dependency terms when we created this method.
) (rof_escape_sequence|91|Module::Build::API.3pm|1314|\*(C`depends_on()\*(C'\fR is meant to call |distinction between the two is that \f(CW\*(C`depends_on()\*(C'\fR is meant to call
) (rof_escape_sequence|91|Module::Build::API.3pm|1315|\*(C`dispatch()\*(C'\fR is meant |an action from inside another action, whereas \f(CW\*(C`dispatch()\*(C'\fR is meant
) (rof_escape_sequence|91|Module::Build::API.3pm|1323|\*(C`File::Spec\*(C'\fR |directory. This is just a convenience function because \f(CW\*(C`File::Spec\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|1325|\*(C`Path::Class\*(C'\fR does...). |\&\f(CW\*(C`Path::Class\*(C'\fR does...).
) (rof_escape_sequence|91|Module::Build::API.3pm|1347|\*(C`depends_on()\*(C'\fR is meant to call |distinction between the two is that \f(CW\*(C`depends_on()\*(C'\fR is meant to call
) (rof_escape_sequence|91|Module::Build::API.3pm|1348|\*(C`dispatch()\*(C'\fR is meant |an action from inside another action, whereas \f(CW\*(C`dispatch()\*(C'\fR is meant
) (rof_escape_sequence|91|Module::Build::API.3pm|1355|\*(C`dist\*(C'\fR action. The name is derived from the \f(CW\*(C`dist_name\*(C'\fR and |\&\f(CW\*(C`dist\*(C'\fR action. The name is derived from the \f(CW\*(C`dist_name\*(C'\fR and
) (rof_escape_sequence|91|Module::Build::API.3pm|1356|\*(C`dist_version\*(C'\fR properties. |\&\f(CW\*(C`dist_version\*(C'\fR properties.
) (rof_escape_sequence|91|Module::Build::API.3pm|1362|\*(C`new()\*(C'\fR method in a \f(CW\*(C`dist_name\*(C'\fR or modified \f(CW\*(C`module_name\*(C'\fR |\&\f(CW\*(C`new()\*(C'\fR method in a \f(CW\*(C`dist_name\*(C'\fR or modified \f(CW\*(C`module_name\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|1369|\*(C`new()\*(C'\fR method from a \f(CW\*(C`dist_version\*(C'\fR, \f(CW\*(C`dist_version_from\*(C'\fR, or |\&\f(CW\*(C`new()\*(C'\fR method from a \f(CW\*(C`dist_version\*(C'\fR, \f(CW\*(C`dist_version_from\*(C'\fR, or
) (rof_escape_sequence|91|Module::Build::API.3pm|1370|\*(C`module_name\*(C'\fR parameter. |\&\f(CW\*(C`module_name\*(C'\fR parameter.
) (rof_escape_sequence|91|Module::Build::API.3pm|1376|\*(C`system()\*(C'\fR built-in |This is a fairly simple wrapper around Perl's \f(CW\*(C`system()\*(C'\fR built-in
) (rof_escape_sequence|91|Module::Build::API.3pm|1378|\*(C`STDOUT\*(C'\fR, and then execute it using |method will print the command to \f(CW\*(C`STDOUT\*(C'\fR, and then execute it using
) (rof_escape_sequence|91|Module::Build::API.3pm|1379|\*(C`system()\*(C'\fR. It returns true or false to indicate success or |Perl's \f(CW\*(C`system()\*(C'\fR. It returns true or false to indicate success or
) (rof_escape_sequence|91|Module::Build::API.3pm|1380|\*(C`system()\*(C'\fR works, but more intuitive). |failure (the opposite of how \f(CW\*(C`system()\*(C'\fR works, but more intuitive).
) (rof_escape_sequence|91|Module::Build::API.3pm|1382|\*(C`do_system()\*(C'\fR, it |Note that if you supply a single argument to \f(CW\*(C`do_system()\*(C'\fR, it
) (rof_escape_sequence|91|Module::Build::API.3pm|1401|\*(C`mysql_support\*(C'\fR and \f(CW\*(C`postgres_support\*(C'\fR, and set them |features called \f(CW\*(C`mysql_support\*(C'\fR and \f(CW\*(C`postgres_support\*(C'\fR, and set them
) (rof_escape_sequence|91|Module::Build::API.3pm|1407|\*(C`...::ConfigData\*(C'\fR module, as |installation via the generated \f(CW\*(C`...::ConfigData\*(C'\fR module, as
) (rof_escape_sequence|91|Module::Build::API.3pm|1408|\*(C`...::ConfigData\->feature($name)\*(C'\fR. |\&\f(CW\*(C`...::ConfigData\->feature($name)\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|1410|\*(C`feature()\*(C'\fR and \f(CW\*(C`config_data()\*(C'\fR methods represent |The \f(CW\*(C`feature()\*(C'\fR and \f(CW\*(C`config_data()\*(C'\fR methods represent
) (rof_escape_sequence|91|Module::Build::API.3pm|1420|\*(C`perl\*(C'\fR"; arguments to the command do not count. In particular, this |"\f(CW\*(C`perl\*(C'\fR"; arguments to the command do not count. In particular, this
) (rof_escape_sequence|91|Module::Build::API.3pm|1421|\*(C`#!/usr/bin/env perl\*(C'\fR will not be changed. |means that the use of \f(CW\*(C`#!/usr/bin/env perl\*(C'\fR will not be changed.
) (rof_escape_sequence|91|Module::Build::API.3pm|1444|\*(C`install_base\*(C'\fR for any installable element. This is useful if you |\&\f(CW\*(C`install_base\*(C'\fR for any installable element. This is useful if you
) (rof_escape_sequence|91|Module::Build::API.3pm|1456|\*(C`foo/bar\*(C'\fR.) The return value is a |directories separated by slashes, e.g. \f(CW\*(C`foo/bar\*(C'\fR.) The return value is a
) (rof_escape_sequence|91|Module::Build::API.3pm|1459|\*(C`undef\*(C'\fR to an element causes it to be removed. |Assigning the value \f(CW\*(C`undef\*(C'\fR to an element causes it to be removed.
) (rof_escape_sequence|91|Module::Build::API.3pm|1464|\*(C`lib\*(C'\fR, |Returns the directory in which items of type \f(CW$type\fR (e.g. \f(CW\*(C`lib\*(C'\fR,
) (rof_escape_sequence|91|Module::Build::API.3pm|1465|\*(C`arch\*(C'\fR, \f(CW\*(C`bin\*(C'\fR, or anything else returned by the \*(L"\fIinstall_types()\fR\*(R" |\&\f(CW\*(C`arch\*(C'\fR, \f(CW\*(C`bin\*(C'\fR, or anything else returned by the \*(L"\fIinstall_types()\fR\*(R"
) (rof_escape_sequence|91|Module::Build::API.3pm|1466|\*(C`install\*(C'\fR action. Any settings |method) will be installed during the \f(CW\*(C`install\*(C'\fR action. Any settings
) (rof_escape_sequence|91|Module::Build::API.3pm|1467|\*(C`install_path\*(C'\fR, \f(CW\*(C`install_base\*(C'\fR, and \f(CW\*(C`prefix\*(C'\fR are taken into |for \f(CW\*(C`install_path\*(C'\fR, \f(CW\*(C`install_base\*(C'\fR, and \f(CW\*(C`prefix\*(C'\fR are taken into
) (rof_escape_sequence|91|Module::Build::API.3pm|1484|\*(C`install_base()\*(C'\fR. |like \f(CW\*(C`install_base()\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|1497|\*(C`undef\*(C'\fR to an element causes it to be removed. |Assigning the value \f(CW\*(C`undef\*(C'\fR to an element causes it to be removed.
) (rof_escape_sequence|91|Module::Build::API.3pm|1504|\*(C`lib\*(C'\fR, \f(CW\*(C`arch\*(C'\fR, \f(CW\*(C`bin\*(C'\fR, |and the list usually includes items such as \f(CW\*(C`lib\*(C'\fR, \f(CW\*(C`arch\*(C'\fR, \f(CW\*(C`bin\*(C'\fR,
) (rof_escape_sequence|91|Module::Build::API.3pm|1505|\*(C`script\*(C'\fR, \f(CW\*(C`libdoc\*(C'\fR, \f(CW\*(C`bindoc\*(C'\fR, and if \s-1HTML\s0 documentation is to be |\&\f(CW\*(C`script\*(C'\fR, \f(CW\*(C`libdoc\*(C'\fR, \f(CW\*(C`bindoc\*(C'\fR, and if \s-1HTML\s0 documentation is to be
) (rof_escape_sequence|91|Module::Build::API.3pm|1506|\*(C`libhtml\*(C'\fR and \f(CW\*(C`binhtml\*(C'\fR. Other user-defined types may also |built, \f(CW\*(C`libhtml\*(C'\fR and \f(CW\*(C`binhtml\*(C'\fR. Other user-defined types may also
) (rof_escape_sequence|91|Module::Build::API.3pm|1531|\*(C`notes()\*(C'\fR value allows you to store your own persistent |The \f(CW\*(C`notes()\*(C'\fR value allows you to store your own persistent
) (rof_escape_sequence|91|Module::Build::API.3pm|1534|\*(C`current()\*(C'\fR method. |\&\f(CW\*(C`current()\*(C'\fR method.
) (rof_escape_sequence|91|Module::Build::API.3pm|1536|\*(C`notes()\*(C'\fR method is essentially a glorified hash access. With no |The \f(CW\*(C`notes()\*(C'\fR method is essentially a glorified hash access. With no
) (rof_escape_sequence|91|Module::Build::API.3pm|1537|\*(C`notes()\*(C'\fR returns the entire hash of notes. With one argument, |arguments, \f(CW\*(C`notes()\*(C'\fR returns the entire hash of notes. With one argument,
) (rof_escape_sequence|91|Module::Build::API.3pm|1538|\*(C`notes($key)\*(C'\fR returns the value associated with the given key. With two |\&\f(CW\*(C`notes($key)\*(C'\fR returns the value associated with the given key. With two
) (rof_escape_sequence|91|Module::Build::API.3pm|1539|\*(C`notes($key, $value)\*(C'\fR sets the value associated with the given key |arguments, \f(CW\*(C`notes($key, $value)\*(C'\fR sets the value associated with the given key
) (rof_escape_sequence|91|Module::Build::API.3pm|1542|\*(C`notes\*(C'\fR data is for \*(L"a build\*(R" \- that is, the |The lifetime of the \f(CW\*(C`notes\*(C'\fR data is for \*(L"a build\*(R" \- that is, the
) (rof_escape_sequence|91|Module::Build::API.3pm|1543|\*(C`notes\*(C'\fR hash is created when \f(CW\*(C`perl Build.PL\*(C'\fR is run (or when the |\&\f(CW\*(C`notes\*(C'\fR hash is created when \f(CW\*(C`perl Build.PL\*(C'\fR is run (or when the
) (rof_escape_sequence|91|Module::Build::API.3pm|1544|\*(C`new()\*(C'\fR method is run, if the Module::Build Perl \s-1API\s0 is being used |\&\f(CW\*(C`new()\*(C'\fR method is run, if the Module::Build Perl \s-1API\s0 is being used
) (rof_escape_sequence|91|Module::Build::API.3pm|1545|\*(C`perl Build.PL\*(C'\fR is |instead of called from a shell), and lasts until \f(CW\*(C`perl Build.PL\*(C'\fR is
) (rof_escape_sequence|91|Module::Build::API.3pm|1546|\*(C`clean\*(C'\fR action is run. |run again or the \f(CW\*(C`clean\*(C'\fR action is run.
) (rof_escape_sequence|91|Module::Build::API.3pm|1552|\*(C`base_dir\*(C'\fR. This |before the \fIBuild\fR script \fIchdir()\fR\-ed into the \f(CW\*(C`base_dir\*(C'\fR. This
) (rof_escape_sequence|91|Module::Build::API.3pm|1562|\*(C`os_type()\*(C'\fR method |fine-grained value of Perl's \f(CW$^O\fR variable. The \f(CW\*(C`os_type()\*(C'\fR method
) (rof_escape_sequence|91|Module::Build::API.3pm|1563|\*(C`Windows\*(C'\fR, \f(CW\*(C`Unix\*(C'\fR, \f(CW\*(C`MacOS\*(C'\fR, \f(CW\*(C`VMS\*(C'\fR, or |will return a string like \f(CW\*(C`Windows\*(C'\fR, \f(CW\*(C`Unix\*(C'\fR, \f(CW\*(C`MacOS\*(C'\fR, \f(CW\*(C`VMS\*(C'\fR, or
) (rof_escape_sequence|91|Module::Build::API.3pm|1565|\*(C`undef\*(C'\fR \- there shouldn't be many unknown platforms |will return \f(CW\*(C`undef\*(C'\fR \- there shouldn't be many unknown platforms
) (rof_escape_sequence|91|Module::Build::API.3pm|1593|\*(C`prefix\*(C'\fR for |Set or retrieve the relative paths that are appended to \f(CW\*(C`prefix\*(C'\fR for
) (rof_escape_sequence|91|Module::Build::API.3pm|1599|\*(C`installdirs\*(C'\fR setting. |\&\f(CW\*(C`installdirs\*(C'\fR setting.
) (rof_escape_sequence|91|Module::Build::API.3pm|1613|\*(C`foo/bar\*(C'\fR.) The return value is a |directories separated by slashes, e.g. \f(CW\*(C`foo/bar\*(C'\fR.) The return value is a
) (rof_escape_sequence|91|Module::Build::API.3pm|1616|\*(C`undef\*(C'\fR to an element causes it to be removed. |Assigning the value \f(CW\*(C`undef\*(C'\fR to an element causes it to be removed.
) (rof_escape_sequence|91|Module::Build::API.3pm|1641|\*(C`undef\*(C'\fR if |prerequisites (of any of the types described above), or \f(CW\*(C`undef\*(C'\fR if
) (rof_escape_sequence|91|Module::Build::API.3pm|1670|\*(C`check_installed_status()\*(C'\fR method, except that in the case of |\&\f(CW\*(C`check_installed_status()\*(C'\fR method, except that in the case of
) (rof_escape_sequence|91|Module::Build::API.3pm|1699|\*(C`prereq_data\*(C'\fR action is just a |types that are defined will be included. The \f(CW\*(C`prereq_data\*(C'\fR action is just a
) (rof_escape_sequence|91|Module::Build::API.3pm|1700|\*(C`prereq_data()\*(C'\fR method and dumps the hash as a string |thin wrapper around the \f(CW\*(C`prereq_data()\*(C'\fR method and dumps the hash as a string
) (rof_escape_sequence|91|Module::Build::API.3pm|1701|\*(C`eval()\*(C'\fR. |that can be loaded using \f(CW\*(C`eval()\*(C'\fR.
) (rof_escape_sequence|91|Module::Build::API.3pm|1710|\*(C`prereq_report\*(C'\fR action is just a thin wrapper around the |report. The \f(CW\*(C`prereq_report\*(C'\fR action is just a thin wrapper around the
) (rof_escape_sequence|91|Module::Build::API.3pm|1711|\*(C`prereq_report()\*(C'\fR method. |\&\f(CW\*(C`prereq_report()\*(C'\fR method.
) (rof_escape_sequence|91|Module::Build::API.3pm|1723|\*(C`prompt()\*(C'\fR detects that it is not running interactively and there |If \f(CW\*(C`prompt()\*(C'\fR detects that it is not running interactively and there
) (rof_escape_sequence|91|Module::Build::API.3pm|1733|\*(C`undef()\*(C'\fR as the default is valid as of 0.27.) |explicitly passing \f(CW\*(C`undef()\*(C'\fR as the default is valid as of 0.27.)
) (rof_escape_sequence|91|Module::Build::API.3pm|1740|\*(C`recommends\*(C'\fR prerequisites |Returns a hash reference indicating the \f(CW\*(C`recommends\*(C'\fR prerequisites
) (rof_escape_sequence|91|Module::Build::API.3pm|1741|\*(C`new()\*(C'\fR method. |that were passed to the \f(CW\*(C`new()\*(C'\fR method.
) (rof_escape_sequence|91|Module::Build::API.3pm|1746|\*(C`requires\*(C'\fR prerequisites that |Returns a hash reference indicating the \f(CW\*(C`requires\*(C'\fR prerequisites that
) (rof_escape_sequence|91|Module::Build::API.3pm|1747|\*(C`new()\*(C'\fR method. |were passed to the \f(CW\*(C`new()\*(C'\fR method.
) (rof_escape_sequence|91|Module::Build::API.3pm|1753|\*(C`File::Find\*(C'\fR to traverse the directory \f(CW$dir\fR, returning a |Uses \f(CW\*(C`File::Find\*(C'\fR to traverse the directory \f(CW$dir\fR, returning a
) (rof_escape_sequence|91|Module::Build::API.3pm|1755|\*(C`qr//\*(C'\fR or just a plain |may either be a regular expression (using \f(CW\*(C`qr//\*(C'\fR or just a plain
) (rof_escape_sequence|91|Module::Build::API.3pm|1780|\*(C`runtime_params()\*(C'\fR method stores the values passed on the command line |The \f(CW\*(C`runtime_params()\*(C'\fR method stores the values passed on the command line
) (rof_escape_sequence|91|Module::Build::API.3pm|1782|\*(C`valid_property()\*(C'\fR returns a true value). The value on the command line may |\&\f(CW\*(C`valid_property()\*(C'\fR returns a true value). The value on the command line may
) (rof_escape_sequence|91|Module::Build::API.3pm|1784|\*(C`new()\*(C'\fR. This allows you to programmatically tell if \f(CW\*(C`perl Build.PL\*(C'\fR |call to \f(CW\*(C`new()\*(C'\fR. This allows you to programmatically tell if \f(CW\*(C`perl Build.PL\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|1785|\*(C`./Build\*(C'\fR had command line options specified that |or any execution of \f(CW\*(C`./Build\*(C'\fR had command line options specified that
) (rof_escape_sequence|91|Module::Build::API.3pm|1788|\*(C`runtime_params()\*(C'\fR method is essentially a glorified read-only hash. With |The \f(CW\*(C`runtime_params()\*(C'\fR method is essentially a glorified read-only hash. With
) (rof_escape_sequence|91|Module::Build::API.3pm|1789|\*(C`runtime_params()\*(C'\fR returns the entire hash of properties |no arguments, \f(CW\*(C`runtime_params()\*(C'\fR returns the entire hash of properties
) (rof_escape_sequence|91|Module::Build::API.3pm|1790|\*(C`runtime_params($key)\*(C'\fR |specified on the command line. With one argument, \f(CW\*(C`runtime_params($key)\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|1793|\*(C`runtime_params\*(C'\fR data is for \*(L"a build\*(R" \- that is, the |The lifetime of the \f(CW\*(C`runtime_params\*(C'\fR data is for \*(L"a build\*(R" \- that is, the
) (rof_escape_sequence|91|Module::Build::API.3pm|1794|\*(C`runtime_params\*(C'\fR hash is created when \f(CW\*(C`perl Build.PL\*(C'\fR is run (or when the |\&\f(CW\*(C`runtime_params\*(C'\fR hash is created when \f(CW\*(C`perl Build.PL\*(C'\fR is run (or when the
) (rof_escape_sequence|91|Module::Build::API.3pm|1795|\*(C`new()\*(C'\fR method is called, if the Module::Build Perl \s-1API\s0 is being used instead |\&\f(CW\*(C`new()\*(C'\fR method is called, if the Module::Build Perl \s-1API\s0 is being used instead
) (rof_escape_sequence|91|Module::Build::API.3pm|1796|\*(C`perl Build.PL\*(C'\fR is run again or the |of called from a shell), and lasts until \f(CW\*(C`perl Build.PL\*(C'\fR is run again or the
) (rof_escape_sequence|91|Module::Build::API.3pm|1797|\*(C`clean\*(C'\fR action is run. |\&\f(CW\*(C`clean\*(C'\fR action is run.
) (rof_escape_sequence|91|Module::Build::API.3pm|1803|\*(C`script_files\*(C'\fR parameter to the |installed, if any. This corresponds to the \f(CW\*(C`script_files\*(C'\fR parameter to the
) (rof_escape_sequence|91|Module::Build::API.3pm|1804|\*(C`new()\*(C'\fR method. With an optional argument, this parameter may be set |\&\f(CW\*(C`new()\*(C'\fR method. With an optional argument, this parameter may be set
) (rof_escape_sequence|91|Module::Build::API.3pm|1807|\*(C`scripts()\*(C'\fR method does exactly the |For backward compatibility, the \f(CW\*(C`scripts()\*(C'\fR method does exactly the
) (rof_escape_sequence|91|Module::Build::API.3pm|1808|\*(C`script_files()\*(C'\fR. \f(CW\*(C`scripts()\*(C'\fR is deprecated, but it |same thing as \f(CW\*(C`script_files()\*(C'\fR. \f(CW\*(C`scripts()\*(C'\fR is deprecated, but it
) (rof_escape_sequence|91|Module::Build::API.3pm|1832|\*(C`prompt()\*(C'\fR and returns true or |Asks the user a yes/no question using \f(CW\*(C`prompt()\*(C'\fR and returns true or
) (rof_escape_sequence|91|Module::Build::API.3pm|1968|\*(C`Module::Build\*(C'\fR |If you would like to add other useful metadata, \f(CW\*(C`Module::Build\*(C'\fR
) (rof_escape_sequence|91|Module::Build::API.3pm|1969|\*(C`meta_add\*(C'\fR and \f(CW\*(C`meta_merge\*(C'\fR arguments to |supports this with the \f(CW\*(C`meta_add\*(C'\fR and \f(CW\*(C`meta_merge\*(C'\fR arguments to
)