SGML::...::Util(3pm)
π SGML::DTDParse::Util(3pm) β the glow-up π
okay bestie, gather round π«Ά this is a page from the User Contributed Perl Documentation collection, and it's all about SGML::DTDParse::Util β a whole lil module of DTDParse helper routines. it's giving "quiet utility module that does exactly one job and does it flawlessly" β¨
β¨ NAME β¨
SGML::DTDParse::Util β literally just DTDParse utility routines. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
the way you bring it in:
use SGML::DTDParse::Util;
use SGML::DTDParse::Util qw(:ALL);
two moods: import nothing (the default, very demure) or grab the whole squad with :ALL π
π¦ DESCRIPTION π¦
SGML::DTDParse::Util hands you utility routines for DTDParse modules and scripts. it's the backstage crew keeping the main character modules looking iconic π
π ROUTINES π
here's the tea: by default, no routines get exported into your namespace. zero. nada. your namespace stays pristine β¨
if you do want the imports, you've got options, bestie:
- name individual routines in the
usestatement, or - use the special tag
:ALLto pull in every single routine at once. all of them. the whole roster π«Ά
π entify π
$xml_str = entify($str);
this one swaps out special characters for entity references π₯ the characters it converts are <, >, &, and " (that's a double-quote, iykyk).
so like. you give it a string, it gives you back an XML-safe string. no cap, it's that simple π
π« SEE ALSO π«
peep SGML::DTDParse for the full overview of the DTDParse package β that's where the big picture lives π
πΈ AVAILABILITY πΈ
the link, no gatekeeping:
<http://dtdparse.sourceforge.net/>
π AUTHORS π
Earl Hood, <earl@earlhood.com>.
π COPYRIGHT AND LICENSE π
see SGML::DTDParse for the copyright and license info β it's all chillin' over there π
fr fr that's the whole page. short king. every detail intact. periodt π
and that's a wrap, bestie π«Ά this was perl v5.32.1, dated 2022-01-21 β go forth and entify responsibly β¨ππ
π¦ where this page comes from
- debian bookworm: libsgml-dtdparse-perl 2.00-3 Β· Artistic-1.0-Perl OR GPL-2.0-only
- debian trixie: libsgml-dtdparse-perl 2.00-3 Β· Artistic-1.0-Perl OR GPL-2.0-only
- ubuntu jammy: libsgml-dtdparse-perl 2.00-3 Β· Artistic-1.0-Perl OR GPL-2.0-only
- ubuntu noble: libsgml-dtdparse-perl 2.00-3 Β· Artistic-1.0-Perl OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms