Help for this page
sub html_trim { my $elem = shift; ... for my $elem ($xhtml->findnodes('//div/ul/li')) { html_trim($elem) }