Pod::Html::Util(3perl)
π Pod::Html::Util π
okay so bestie, welcome to Pod::Html::Util β that's part of the Perl Programmers Reference Guide btw, iykyk. it's the lil helper-functions toolbox for Pod-Html, and yes she's serving utility, no cap π
β¨ NAME β¨
Pod::Html::Util β helper functions for Pod-Html π«Ά
πΈ SUBROUTINES πΈ
β οΈ okay listen up because this part is important: these functions are importable on request fromPod::Html::Util, BUT they're specifically intended for use within (a) the Pod-Html distribution (modules and test programs) shipped as part of the Perl 5 core, and (b) other parts of the core such as theinstallhtmlprogram. these functions may be modified or relocated within the core distribution β or removed entirely therefrom β as the core's needs evolve. so like... do NOT rely on these functions in situations other than those just described. it's giving "private, bestie, please" π
π§ process_command_line()
processes command-line switches (options), and returns a reference to a hash β¨
will give you a usage message if the --help switch is present, or if the parameters are invalid. so messy of you if that happens ngl π
π heads up: calling this subroutine may modify @ARGV. she's not sorry.
π usage()
displays the customary Pod::Html usage info on STDERR. cute little reminder, slay π’
π¦ unixify()
makes sure Pod::Html's internals and tests handle paths consistently across Unix, Windows and VMS. one path style to rule them all, periodt π
π relativize_url()
converts an absolute URL to one relative to a base URL. assumes both end in a filename. so like, don't be weird about it π₯
β html_escape()
makes text safe for HTML. protective queen behavior fr fr π
πΈ htmlify()
htmlify($heading);
converts a pod section specification to a suitable section specification for HTML β¨
note that we keep spaces and special characters, except "", ?" (Netscape problem π) and the hyphen (writer's problem... π). iconic exceptions tbh
π§ anchorify()
anchorify(@heading);
similar to htmlify(), but turns non-alphanumerics into underscores π«Ά
π note that anchorify() is not exported by default. you gotta ask, bestie.
π trim_leading_whitespace()
removes any level of indentation (spaces or tabs) from each code block, consistently β¨ adapted from:
https://metacpan.org/source/HAARG/MetaCPAN-Pod-XHTML-0.002001/lib/Pod/Simple/Role/StripVerbatimIndent.pm
and that's the whole vibe check, bestie π this was perl v5.44.0, dated 2026-10-17 β go forth and be unbothered, you absolute main character πβ¨π
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND 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