Pod::R...:Types(3pm)
π Pod::Readme::Types β the vibe check on types π
Bestie. This is Pod::Readme::Types, a lil corner of the User Contributed Perl Documentation universe. It's the type library that the Pod::Readme family leans on, and today we're getting into every single one of them. No skips, no skimming, we're reading the whole thing. β¨
πΈ NAME πΈ
Pod::Readme::Types β the types used by Pod::Readme, periodt. π
β¨ SYNOPSIS β¨
Okay so here's the whole vibe in code form, and yes it's giving exactly what it needs to give:
use Pod::Readme::Types qw/ Indentation /;
has verbatim_indent => (
is => 'ro',
isa => Indentation,
default => 2,
);
Look at that. Clean. Cozy. <cyan>Indentation</cyan> doing its little job. We love to see it. π«Ά
π¦ DESCRIPTION π¦
So this module provides types for use with the modules in Pod::Readme. That's the whole gig.
Now, lowkey important: it is intended for internal use. It's not out here trying to be your main character API. However β and this is the fun part β some of these may be useful for writing plugins (see Pod::Readme::Plugin). So if you're out here building a plugin, peek at these, they might eat. π₯
π EXPORTS π
None by default. Not a single one, babe, it's giving empty-handed on arrival. All functions must be explicitly exported. So you gotta ask nicely β qw/ ... / β or you get nothing. That's the deal. π
π "Indentation"
The indentation level used for verbatim text. Must be an integer greater than or equal to 2.
So like, 2? Slay. 1? Absolutely not, bestie. π
π "HeadingLevel"
A heading level, used for plugin headings.
Must be either 1, 2 or 3. And heads up (pun intended, I'm hilarious): note that =head4 is not allowed, since some plugins use subheadings. So 4 is out. Blocked. Not invited to the function. π
π "TargetName"
A name of a target, e.g. "readme". Simple as that. Cute, short, iconic. β
π "Dir"
A directory. Can be a string or Path::Tiny object. Flexible queen. π
π "File"
A file. Can be a string or Path::Tiny object. Same energy, different noun. π
π "IO"
An IO::Handle or IO::String object. That's it, that's the type. π§
π "ReadIO" / "WriteIO"
These are IO types, which coerce filehandles to read/write IO::Handles, respectively. So ReadIO handles the reading side, WriteIO handles the writing side. Each one doing its own lil thing. Obsessed. π
Quick reminder bestie: nothing here is exported unless you explicitly ask for it. Don't come for me later like "where are my types" β you gotta use them by name. iykyk. π
And that's the whole page, fr fr. This was written by the Perl crew, shipped as part of perl v5.28.0 on 2018-11-26, under the User Contributed Perl Documentation umbrella. π Stay typed, stay iconic, and go write that plugin. Mwah. β¨ππ¦
π¦ 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