Pod::W...Version(3pm)
π Pod::W...Version(3pm) π
okay so bestie, first things first: this page lives in the User Contributed Perl Documentation manual, and the module is Pod::Weaver::Section::Version. say it with me now π«Ά
β¨ NAME β¨
Pod::Weaver::Section::Version β it adds a VERSION pod section. that's the whole gig. iconic behavior honestly.
π VERSION π
version 4.020 β yes, the version section plugin has its own version. very meta of her. main character energy fr fr π
πΈ OVERVIEW πΈ
so this little section plugin produces a hunk of Pod meant to indicate the version of the document you're looking at. it's giving:
=head1 VERSION
version 1.234
and like, lowkey important: it will do nothing if there's no "version" entry in the input. no version, no vibes. it just sits there quietly. π€·ββοΈ
π¦ PERL VERSION π¦
the tea β: this module should work on any version of perl still receiving updates from the Perl 5 Porters. which means it should work on any version of perl released in the last two to three years. (like, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.) slay.
although it may work on older versions of perl, there is no guarantee that the minimum required version will not be increased. the version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. periodt. don't come for her. π
π ATTRIBUTES π
β header
the title of the header to be added. (default: "VERSION") β cute, simple, to the point.
β format
the string to use when generating the version string. her little costume change, if you will.
Default: version %v
the following variables are available:
vβ the versionVβ the version, suffixed by"-TRIAL"if a trial releasedβ the CLDR format for DateTimenβ a newlinetβ a tabsβ a spacerβ the name of the dist, present only if you use Dist::Zilla to generate the POD!mβ the name of the module, present only if PPI parsed the document and it contained a package declaration!Tβ special: at the beginning of the line, followed by any amount of whitespace, indicates that the line should only be included in trial releases; otherwise, results in a fatal error π₯
if multiple strings are supplied as an array ref, a line of POD is produced for each string. each line will be separated by a newline. this is useful for splitting longer text across multiple lines in a weaver.ini file, for example:
; weaver.ini
[Version]
format = version %v
format =
format = This module's version numbers follow the conventions described at
format = L<semver.org|http://semver.org/>.
format = %T
format = %T This is a trial release!
see how she ate that? π
β is_verbatim
a boolean value specifying whether the version paragraph should be verbatim or not.
Default: false
β time_zone
the timezone to use when using DateTime for the format.
Default: local
π METHODS π
π build_content
my @pod_elements = $section->build_content(\%input);
this method is passed the same \%input that goes to the "weave_section" method, and should return a list of pod elements to insert.
in almost all cases, this method is used internally, but could be usefully overridden in a subclass. iykyk π§
π AUTHOR π
Ricardo SIGNES <cpan@semiotic.systems> β the legend herself. we stan.
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2024 by Ricardo SIGNES.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π«Ά
okay that's the whole page, bestie!! no cap, you're now a Pod::Weaver::Section::Version expert π
β¨
and for the little sign-off moment: this page was rendered by perl v5.38.2 on 2024-03-24, under that Pod::W...Version(3pm) header you saw up top. bye babe!! ππ¦π
π¦ where this page comes from
- debian trixie: libpod-weaver-perl 4.020-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpod-weaver-perl 4.020-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpod-weaver-perl 4.020-1 Β· Artistic-1.0-Perl 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