XML::En...es::Data(3)
π 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::EntitiesXML::Entities
π COPYRIGHT π
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
- opensuse-leap 16.0: perl-XML-Entities 1.0002-bp160.1.12 Β· Artistic-1.0 or GPL-1.0+
- opensuse-leap 16.0: perl-XML-Entities 1.0002-bp160.1.12 Β· Artistic-1.0 or GPL-1.0+
- opensuse-leap 16.0: perl-XML-Entities 1.0002-bp160.1.12 Β· Artistic-1.0 or GPL-1.0+
- opensuse-leap 16.0: perl-XML-Entities 1.0002-bp160.1.12 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms