I am trying extract the table inside this html file using perl.
I have tried this:
my $te = HTML::TableExtract->new();
$te->parse_file($g_log);
print "=====TE: $te ======\n";
Output is :
HTML:TableExtract = Hash(0x266f5f)
I tried iterating through $te and nothing found. Can anyone guide what to do next. I am new to this.
This is the HTML file:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://exslt.org/math"
xmlns:testng="http://testng.org">
<head xmlns="">
<title>TestNG Results</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
<meta http-equiv="pragma" content="no-cache"></meta>
<meta http-equiv="cache-control" content="max-age=0"></meta>
<meta http-equiv="cache-control" content="no-cache"></meta>
<meta http-equiv="cache-control" content="no-store"></meta>
<LINK rel="stylesheet" href="style.css"></LINK>
<script type="text/javascript" src="main.js"></script>
</head>
<body>
<h2>Test suites overview</h2>
<table width="100%">
<tr>
<td align="center" id="chart-container"><script type="text/javascript">
renderSvgEmbedTag(600, 200);
</script></td>
</tr>
</table>
</body>
</html>