What is generally missed about header-based extraction with HTML::TableExtract, however, is that the strings that you use to define the headers will eventually be turned into case-insensitive regular expressions.
So change the following part:
to this (notice the single quotes..otherwise you'll have to escape your backslashes):my $te = new HTML::TableExtract( headers => ["Product Name", "Software Version", "Compatible with Versions +", "Date" ] );
...and things will work as you expect. Also note that rather than strings, you can pass pre-compiled regexps from qr//, like so:my $te = new HTML::TableExtract( headers => ['Product\s+Name', 'Software\s+Version', 'Compatible\s+with\s+Vers +ions", 'Date' ] );
my $te = new HTML::TableExtract( headers => [qr/Product\s+Name/, qr/Software\s+Version/, qr/Compatible\s+with\s+Ve +rsions/, 'Date' ] );
Cheers,
Matt
In reply to Re: Using HTML::TableExtract
by mojotoad
in thread Using HTML::TableExtract
by davido
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |