[Israel.pm] HTML Tables Parsing with Perl

Yuval Yaari yuval at windax.com
Fri May 28 09:55:31 PDT 2004

This seems like a nice solution - I will try this on Sunday.

The table itself seems to be strict but except for that, I guess it's not
XML/XHTML like at all, and might be not-so-strict (e.g: <B><I>hello



HeziGolan said:
> Hi
>  if it's a stricted html you can use this
> use XML::Simple;
> use Data::Dumper;
> my $newFile='a.html'; # the file that contain the html
> my $xs = new XML::Simple();
> $ref = $xs->XMLin($newFile);
> print Dumper $ref ;
> # The text u need will be
> print $ref ->{TABLE}->{TR}->{TD};

More information about the Perl mailing list