GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Module::Build::Prereqs::FromCPANfile(3) User Contributed Perl Documentation Module::Build::Prereqs::FromCPANfile(3)

Module::Build::Prereqs::FromCPANfile - construct prereq parameters of Module::Build from cpanfile

    use Module::Build;
    use Module::Build::Prereqs::FromCPANfile;
    
    Module::Build->new(
        ...,
        mb_prereqs_from_cpanfile()
    )->create_build_script();

This simple module reads cpanfile and converts its content into valid prereq parameters for new() method of Module::Build.

Currently it does not support "optional features" specification (See "feature" in cpanfile).

The following function is exported by default.

Reads cpanfile, parses its content and returns corresponding %prereq_params for Module::Build.

Fields in %args are:

"version" => VERSION_STR (optional, default: $Module::Build::VERSION)
Version number of the target Module::Build.

If omitted, Module::Build is loaded and $Module::Build::VERSION is used.

"cpanfile" => FILEPATH (optional, default: "cpanfile")
File path to the cpanfile to be loaded.

If omitted, it loads "cpanfile" in the current directory.

Maybe this module does the same job better, but it has heavier dependency.

<https://github.com/debug-ito/Module-Build-Prereqs-FromCPANfile>

Please report bugs and feature requests to my Github issues <https://github.com/debug-ito/Module-Build-Prereqs-FromCPANfile/issues>.

Although I prefer Github, non-Github users can use CPAN RT <https://rt.cpan.org/Public/Dist/Display.html?Name=Module-Build-Prereqs-FromCPANfile>. Please send email to "bug-Module-Build-Prereqs-FromCPANfile at rt.cpan.org" to report bugs if you do not have CPAN RT account.

Toshio Ito, "<toshioito at cpan.org>"

Copyright 2014 Toshio Ito.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See <http://dev.perl.org/licenses/> for more information.

2025-07-03 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.