print XML::LibXML->new->parse_html_string(join "", <>)->toStringHTML;
my $parser = XML::LibXML->new();
$parser->recover(1); # Set recovery on error flag
$parser->parse_html_string(join "", <>)->toStringHTML;
Don't know if it's accurate but the docs say that won't work-
This switch (recover) will only work with XML data rather than HTML data.
(Update, July 2010: this does work and has for at least a few years -- don't know if it was always the case; I should have tested back when I initially responded.)
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (163 votes),