SGML::...::Util(3pm)

πŸ“¦
version 2.00 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– 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 use statement, or
  • use the special tag :ALL to 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>.


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