Try
pojfor my $d ($root->findnodes($xpath)) { my @line = $d->content_list; s/^\s+|\s+$//g for @line; printf "%s\n",$line[0]; }
In reply to Re^3: Truncating an HTML node using XPaths in HTML::TreeBuilder::XPath
by poj
in thread Truncating an HTML node using XPaths in HTML::TreeBuilder::XPath
by mldvx4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |