HTML::...tatype(3pm)
π HTML::Microformats::Datatype π
okay bestie, welcome to the HTML::Microformats::Datatype manual page β this is the User Contributed Perl Documentation situation, and honestly? it's giving "tiny module, huge main character energy". π
β¨ NAME β¨
HTML::Microformats::Datatype β representations of literal values π¦
πΈ DESCRIPTION πΈ
so like, there are SO many places where you'd expect a plain old Perl scalar to just... show up. for example:
$my_hcard->get_fn;
and what you actually get back?? bestie. it's an object. from one of the Datatype modules. not a scalar. an object. π
why tho? because using a scalar loses information, and we do not do that here. for example β and this is the iconic part β most strings have associated language information (from HTML lang and xml:lang attributes). using an object lets all that info stay kept. no cap. π
the Datatype modules overload stringification, which means that for the most part, you can use them as strings β subjecting them to regular expressions, concatenating them, printing them, etc β and everything will work just fine. β¨
but they're not strings. remember that. fr fr. π«Ά
π BUGS π
Please report any bugs to <http://rt.cpan.org/>. (yes, all of them. every single one. we wanna know π)
π SEE ALSO π
HTML::Microformats.HTML::Microformats::Datatype::DateTimeHTML::Microformats::Datatype::DurationHTML::Microformats::Datatype::IntervalHTML::Microformats::Datatype::String
(the whole datatype friend group π)
π AUTHOR π
Toby Inkster <tobyink@cpan.org>. absolute legend, no notes. π
π COPYRIGHT AND LICENCE π
Copyright 2008-2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay. π
π₯ DISCLAIMER OF WARRANTIES π₯
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
okay so this one is in ALL CAPS for a reason β it means no promises, no take-backs, no warranty vibes whatsoever. read it twice. π
and that's the whole page, bestie!! π this one came from the User Contributed Perl Documentation crew, perl v5.32.1, dated 2021-09-12 β so yeah, iconic, historic, we love her. bye bye now, go stringify something responsibly β¨π¦π
π¦ where this page comes from
- debian bookworm: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR 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