HTML::...essage(3pm)
β¨ HTML::Tidy5::Message π
okay bestie, gather round, because this is the little message object that the Tidy functionality in HTML::Tidy5 hands you every time something goes sideways. it's giving tiny-but-important. it's from the User Contributed Perl Documentation corner of the world, and it is so much simpler than it sounds, i promise π«Ά
π¦ EXPORTS
None. nope. zero. It's all object-based. you're gonna be calling methods on an object, no import party here π
π§ METHODS
Almost everything is an accessor. like, that's the whole vibe. it holds onto some data and then tells you what it's holding π
πΈ new( $file, $line, $column, $text )
Create an object. honestly it's not very exciting, bestie π it just... makes the thing.
$file can be undef or an empty string, and in that case it will not appear in messages. so if you don't have a filename, no biggie, it just won't show up π¦
π as_string()
Returns a nicely-formatted string for printing out to stdout or some similar user thing. like if you wanna show a human what went wrong, this is the glow-up version of it β¨
π file()
Returns the filename of the error, as set by the caller. that's it. that's the method π
π·οΈ type()
Returns the type of the error. and this one is only ever gonna be "TIDY_ERROR" or "TIDY_WARNING" β pick your fighter π
π line()
Returns the line number of the error, or 0 if there isn't an applicable line number. zero means "no line info, don't @ me" π
π column()
Returns the column number, or 0 if there isn't an applicable column number. same deal, 0 is the "n/a" flag here π
π¬ text()
Returns the text of the message. and heads up: this does not include a type string, like "Info: ". so you're getting the raw message text, not the decorated version π
Β©οΈ COPYRIGHT & LICENSE
Copyright 2005-2018 Andy Lester.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License v2.0. go forth and remix, iconically π
π AUTHOR
Andy Lester, "<andy@petdance.com>"
and that's the whole page, bestie β perl v5.42.3, dated 2026-08-19, mwah π slay, no cap, now go catch those Tidy messages πβ¨
π¦ where this page comes from
- ubuntu stonking: libhtml-tidy5-perl 1.06-3build3 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms