XML::En...es::Data(3)

πŸ“¦
version 1.0002 Β· 5 versions
, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

Okay so bestie, welcome to the manual page for XML::Entities::Data(3) β€” the header up top is out here truncating it like XML::En...es::Data(3), but you already knew the vibe. This module is literally just XML entity definitions. That's the whole main character energy. πŸŽ€

✨ SYNOPSIS ✨

Here's how you pull up on it:

use XML::Entities::Data;
$ISONUM_map = XML::Entities::Data::isonum;
$all = XML::Entities::Data::all;
@available_sets = XML::Entities::Data::names;
$reverse_mapping = XML::Entities::Data::char2entity('isonum');

# regenerate the data
perl download-entities.pl > XML/Entities/Data.pm
perl download-entities.pl http://from.where.org/ > Data.pm

Like, yes, that's the exact code β€” don't come for me, I copied it verbatim because that's the whole point. πŸ’…

🌸 DESCRIPTION 🌸

So what is this module, fr fr? It's a bunch of hashes, and those hashes are encapsulated by subroutines. Their whole job? Mapping XML entity names to their unicode characters (or strings). That's it. That's the gig. πŸ¦‹

You're supposed to use it from the XML::Entities module, or honestly you can take the hashes it provides and pass them straight to HTML::Entities::_decode_entities. Very generous of it, honestly. 🫢

Now, the data can be re-generated whenever definitions are changed or altered β€” or when you want to use another set that's defined someplace online in an .ent file (of type DTD). It's giving "fresh data, fresh me." See the download-entities.pl script for that. No cap. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Go check out these besties too:

  • HTML::Entities
  • XML::Entities

Copyright 2010 Jan Oldrich Kruza <sixtease@cpan.org>. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


And that's the page, bestie. πŸ“ This little icon was brought to you by perl v5.42.0, dated 2024-03-04 β€” mwah, periodt. πŸ’‹βœ¨

πŸ“¦ where this page comes from