vishwasu89 has asked for the wisdom of the Perl Monks concerning the following question:
I have a html file. I would like to extract certain data/lines/strings and create a hash array using perl. I have written perl scripts using regex earlier but how to use HTML perl modules? These are the lines in the file:
<td><b>SCORE</b></td><td>WEIGHT</td><td>GOAL</td><td class="alfsrt">N +AME</td></tr><tr> <td class="s5 rt"> 59.37</td> <td class="wht">1 </td> <td class="wht">100 </td> <td><a name="tag_ddr3ctrl_top.T0::ddr3ctrl_coverage::inputs"></a> <a href="grp0.html" >ddr3ctrl_top.T0::ddr3ctrl_coverage::inputs</a></t +d> </tr><tr> <td class="s7 rt"> 78.32</td> <td class="wht">1 </td> <td class="wht">100 </td> <td><a name="tag_ddr3ctrl_top.T0::ddr3ctrl_coverage::outputs"></a> <a href="grp1.html" >ddr3ctrl_top.T0::ddr3ctrl_coverage::outputs</a></ +td>
I want to extract the following by parsing the file: 1) s5, grp0.html, inputs 2) s7, grp1.html, outputs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using HTML Modules to parse a file and extract relevant data?
by alexbyk (Novice) on Apr 26, 2014 at 22:55 UTC | |
by Your Mother (Archbishop) on Apr 27, 2014 at 05:57 UTC | |
by Anonymous Monk on Apr 27, 2014 at 15:13 UTC | |
by vishwasu89 (Initiate) on Apr 27, 2014 at 20:37 UTC | |
|
Re: Using HTML Modules to parse a file and extract relevant data?
by Anonymous Monk on Apr 26, 2014 at 22:34 UTC |