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 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