POD2README(1p)
π POD2README β bestie edition π
okay so. you've got a .pm file with a bunch of POD in it and you want a README out of it? pod2readme literally does that for you. it's a lil Perl utility, it's intelligently generating a README from POD, no cap. π
πΈ USAGE πΈ
pod2readme [-cfho] [long options...] input-file [output-file] [target]
Intelligently generate a README file from POD
-t --target target type (default: 'readme')
-f --format output format (default: 'text')
-b --backup backup output file
-o --output output filename (default based on target)
-c --stdout output to stdout (console)
-F --force only update if files are changed
-h --help print usage and exit
like. that's the whole vibe. input file goes in, README comes out. β¨
π¦ SYNOPSIS π¦
pod2readme -f markdown lib/MyApp.pm
that's it, that's the girl. markdown README from your module. periodt. π
π DESCRIPTION π
so what's actually happening here? this utility uses Pod::Readme to pull a README file out of a POD document. the way that it does this is very cute:
- it extracts and filters the POD π§
- then it calls the appropriate filter program to convert that POD into another format π
that's the whole pipeline, bestie. extract β filter β convert β slay. π₯
π OPTIONS π
β¨ --backup
by default, pod2readme will back up the output file. safety first, always. π
but if you don't want that? use the --no-backup option. your file, your rules.
β¨ --output
this one specifies the name of the output file. if you omit it, it'll use the second command line argument instead β or it defaults to the --target plus the corresponding extension of the --format.
for all intents, the default is README. π
and if you pick a format other than text, the appropriate extension gets added, e.g. for markdown, the default output file is README.md. see? smart girl behaviour.
β¨ --target
the target of the filter. defaults to readme. that's it, that's the whole option. π
β¨ --format
the output format, which defaults to text.
other supposed formats are github, html, latex, man, markdown, pod, rtf, and xhtml. you can also use gfm instead of github. similary you can use md for markdown. (yes, "similary" β we keep the lore exact, okay? π)
so many options and every single one of them ate. π
β¨ --stdout
if enabled, it will output to the console instead of to --output. for when you just wanna see it first, yk? π«Ά
β¨ --force
by default, the README will be generated if the source files have been changed. using --force will force the file to be updated. no thoughts, just update. π₯
β οΈ note: POD format files will always be updated. always. no exceptions, bestie, that's just how it is.
β¨ --help
prints the usage and exits. the classic. πΈ
π SEE ALSO π
pod2textpod2markdown
go check those out too, they're in the same friend group. π
and that's the whole manpage, bestie!! this one's from perl v5.28.0, dated 2018-11-26 β iconic behaviour honestly, still serving after all these years. πβ¨π bye luv u π«Ά
π¦ where this page comes from
- debian bookworm: libpod-readme-perl 1.2.3-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpod-readme-perl 1.2.3-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libpod-readme-perl 1.2.3-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpod-readme-perl 1.2.3-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms