logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::Microformats::Datatype - representations of literal values

Author

       Toby Inkster <tobyink@cpan.org>.

Bugs

       Please report any bugs to <http://rt.cpan.org/>.

Description

       Many places you'd expect a Perl scalar to appear, e.g.:

         $my_hcard->get_fn;

       What you actually get returned is an object from one of the Datatype modules. Why? Because using a scalar
       loses information. For example, most strings have associated language information (from HTML lang and
       xml:lang attributes). Using an object allows this information to be kept.

       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.

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.

perl v5.32.1                                       2021-09-12                  HTML::Microformats::Datatype(3pm)

Name

       HTML::Microformats::Datatype - representations of literal values

See Also

       HTML::Microformats.

       HTML::Microformats::Datatype::DateTime, HTML::Microformats::Datatype::Duration,
       HTML::Microformats::Datatype::Interval, HTML::Microformats::Datatype::String.

See Also