Module:...FromPod(3)
π Module:...FromPod(3) β bestie edition π
okay so this is a page from the User Contributed Perl Documentation manual, and the module we're hyping up is Module::Install::ReadmeMarkdownFromPod. yes it's a mouthful. yes it's iconic. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
Module::Install::ReadmeMarkdownFromPod β literally just here to create README.mkdn from POD. that's the whole job. she's focused. she's thriving. π
β¨ SYNOPSIS β¨
# in Makefile.PL
use inc::Module::Install;
name 'Some-Module';
readme_markdown_from 'lib/Some/Module.pm';
look at her go π¦ three little lines and boom, README magic.
β¨ DESCRIPTION β¨
okay so Module::Install::ReadmeMarkdownFromPod is a Module::Install extension, right? and what it does is generate a README.mkdn file automatically from whatever file you point at that contains POD, every single time the author runs Makefile.PL. π₯
and why do we care?? because GitHub uses that file to display nicely formatted info about a repository. it's giving main character README energy, no cap. π
β¨ FUNCTIONS β¨
πΈ readme_markdown_from
on the user-side? does absolutely nothing. zero. nada. she's resting. π΄
on the author-side though? she generates a README.mkdn file using Pod::Markdown, pulling from the POD in the file you passed as a parameter. slay.
readme_markdown_from 'lib/Some/Module.pm';
now β if you set a second parameter to a true value, then that README.mkdn gets removed at make distclean. clean girl aesthetic β¨
readme_markdown_from 'lib/Some/Module.pm' => 'clean';
heads up bestie: it will die unless a file name is given. no filename, no vibes, no service. π
πΈ readme_markdown_from_pod
like readme_markdown_from, but she assumes all_from has already been called before, and she uses the filename stored there to generate the README.mkdn. then she calls readme_markdown_from with that filename. teamwork!! π«Ά
and if you give her an optional boolean parameter, that gets passed along to readme_markdown_from too, indicating whether to clean up the generated README.mkdn file at make distclean time. (this is literally the 'clean' thing from before, but make it modular. iykyk.)
πΈ readme_from_pod
like readme_markdown_from_pod, but she affects the plain-text README file generation done in Module::Install::ReadmeFromPod. π
ngl this function would be better placed in that module and might move there eventually. it's given here as a convenience because if you want to generate both README and README.mkdn, you can just do it here without repeating the filename given in all_from. efficiency queen. π
πΈ reference_module
a utility function that saves you from repeatedly naming a reference module from which to extract information. so real of her.
reference_module 'lib/Some/Module.pm';
is equivalent to:
all_from 'lib/Some/Module.pm';
readme_from 'lib/Some/Module.pm';
readme_markdown_from 'lib/Some/Module.pm';
it will die unless a file name is given. π
also β important βreference_modulewill not work withShipit::Step::FindVersion, because that module is out here looking for aversion_fromorall_fromstring inMakefile.PL. she's not gonna find it, bestie. sorry. π
β¨ BUGS AND LIMITATIONS β¨
no bugs have been reported. clean record. glowing skin. πβ
please report any bugs or feature requests through the web interface at <http://rt.cpan.org>. she's listening, fr fr.
β¨ INSTALLATION β¨
see perlmodinstall for information and options on installing Perl modules. that's your girl for all things install-related. π¦
β¨ AVAILABILITY β¨
the latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). visit <http://www.perl.com/CPAN/> to find a CPAN site near you. or see <http://search.cpan.org/dist/Module-Install-ReadmeMarkdownFromPod/>. π
the development version lives at <http://github.com/hanekomu/module-install-readmemarkdownfrompod/>. instead of sending patches, please fork this project using the standard git and github infrastructure. fork it bestie, it's yours now. π΄β¨
β¨ AUTHORS β¨
Marcel GrΓΌnauer, <marcel@cpan.org> π
β¨ COPYRIGHT AND LICENSE β¨
Copyright 2009 by Marcel GrΓΌnauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
β¨ SEE ALSO β¨
Pod::MarkdownModule::InstallModule::Install::ReadmeFromPod
and that's the whole page, bestie!! π₯³ this was Module:...FromPod(3), perl v5.42.0, dated 2025-07-25 β thank u for coming to my ted talk, go write some READMEs, ily, bye ππ§
π¦ where this page comes from
- fedora 43: perl-Module-Install-ReadmeMarkdownFromPod 0.04-25.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms