Module...ANfile(3pm)
π Module::Build::Prereqs::FromCPANfile π
okay so bestie, this is one of the User Contributed Perl Documentation pages β yep, the whole 3pm situation β and it's genuinely such a little slay. It's Module::Build::Prereqs::FromCPANfile, which is a lot of words, I know, but stay with me π«Ά
β¨ NAME β¨
Module::Build::Prereqs::FromCPANfile β literally it constructs prereq parameters of Module::Build from cpanfile. That's the whole vibe. No cap.
π SYNOPSIS π
like, here's how you'd actually use it:
use Module::Build;
use Module::Build::Prereqs::FromCPANfile;
Module::Build->new(
...,
mb_prereqs_from_cpanfile()
)->create_build_script();
iconic. moving on π
π¦ DESCRIPTION π¦
This simple module reads cpanfile and converts its content into valid prereq parameters for the new() method of Module::Build. it's giving "small but mighty", fr fr.
β οΈ Okay real talk for a sec: currently it does not support the"optional features"specification (see"feature"incpanfile). So don't come for it about that π
πΈ EXPORTED FUNCTION πΈ
The following function is exported by default, so you don't have to ask twice π
%prereq_params = mb_prereqs_from_cpanfile(%args)
Reads cpanfile, parses its content and returns the corresponding %prereq_params for Module::Build. chef's kiss.
The fields in %args are:
"version" => VERSION_STRβ optional, default:$Module::Build::VERSION. This is the version number of the targetModule::Build. If you omit it,Module::Buildgets loaded and$Module::Build::VERSIONis used. easy."cpanfile" => FILEPATHβ optional, default:"cpanfile". This is the file path to thecpanfilethat's gonna get loaded. If you omit it, it loads"cpanfile"in the current directory. yes bestie, the current directory, look at it go β¨
π§ SEE ALSO π§
Module::BuildModule::Build::Pluggable::CPANfileβ okay so maybe this module does the same job better, but lowkey it has a heavier dependency. you win some, you install some π
π REPOSITORY π
<https://github.com/debug-ito/Module-Build-Prereqs-FromCPANfile>
go star it, iykyk β
π₯ BUGS AND FEATURE REQUESTS π₯
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 a CPAN RT account. we got options, bestie π«Ά
π AUTHOR π
Toshio Ito, "<toshioito at cpan.org>" β main character energy, honestly π
π LICENSE AND COPYRIGHT π
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.
and that's the whole page, bestie!! πβ¨ it was documented with perl v5.42.0 back on 2020-11-04, so likeβ¦ vintage. periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Module-Build-Prereqs-FromCPANfile 0.02-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms