In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Steven Kreuzer) wrote:
> I have an HTML file that I grab with LWP::Simple, however, What I really > need is just the HTML between <TABLE> and </TABLE>, everything else > discarded. > I did some searches on google but was unable to come up with anything, I > know this is rather trivial for the experts, but if anyone can lend me > some assistance, I would be grateful > > The HTML Code for the Table Looks like This: > > <table WIDTH="540" CELLPADDING="2" CELLSPACING="0" BORDER="1"> > <tr><td WIDTH="15%" VALIGN=TOP><p><b>ZIP</b></td> > <td WIDTH="50%" VALIGN=TOP><p><b>CITY AND STATE</b></td> > <td WIDTH="25%" VALIGN=TOP><p><b>COUNTY</b></td> > <td WIDTH="10%" VALIGN=TOP><p><b>AREA</b></td></tr> > <tr><td WIDTH="15%" VALIGN=TOP><p>10036</td> > <td WIDTH="50%" VALIGN=TOP><p>New York, NY</td> > <td WIDTH="25%" VALIGN=TOP><p>New York</td> > <td WIDTH="10%" VALIGN=TOP><p>212</td></tr> > </table> > > SK HTML::Parser from CPAN is your best bet for doing something like this. IIRC there's even an HTML::TableExtract somewhere although I don't know whether it will suit your needs. print pack "H*", "4a75737420416e6f74686572204d61635065726c204861636b65722c0d"; -- Scott R. Godin | e-mail : [EMAIL PROTECTED] Laughing Dragon Services | web : http://www.webdragon.net/ It is not necessary to cc: me via e-mail unless you mean to speak off-group. I read these via nntp.perl.org, so as to get the stuff OUT of my mailbox. :-)