I'm trying to extract some information html using perl. I found out about TreeBuilder and Element and Parser, which one should i use? How would I extract the name and the value of the row below? Also this is embedded in an html structure, the only way to really target which field I want is given the value of the column "Number of directories". Or should I just do a regex on the entire html?
<table cellspacing="0">
<tbody><tr><td class="black">Number of directories</td><td class="black">:</td><td class="black"> 80</td></tr>
<tr><td class="black">Number of monitored source files</td><td class="black">:</td><td class="black"> 425</td></tr>
<tr><td class="black">Number of functions</td><td class="black">:</td><td class="black"> 6245</td></tr>
<tr><td class="black">Number of source lines</td><td class="black">:</td><td class="black"> 3245</td></tr>
<tr><td class="black">Number of measurement points</td><td class="black">:</td><td class="black"> 2457</td></tr>
<tr><td class="red">TER</td><td class="red">:</td><td class="red"> <strong>12%</strong> (decision)</td></tr>
</tbody></table>