<?xml version="1.0" encoding="windows-1252"?>
<node id="522100" title="Re: Problems with TableExtract" created="2006-01-10 00:58:53" updated="2006-01-09 19:58:53">
<type id="11">
note</type>
<author id="369157">
johnnywang</author>
<data>
<field name="doctext">
Your script has many errors in it, it looks like you copy/pasted several things together. Please run your script before posting so we can concentrate on the problem part.
That being said, the following works:
&lt;code&gt;
use strict;
use LWP::Simple;
use HTML::TableExtract;


my $page = get("http://www.dhl-usa.com/TransitTimes/USTTimeRslts.asp?nav=TransitTimes&amp;oz=53213&amp;oc=1&amp;oh=ORD&amp;dz=60056&amp;dc=1&amp;dt=1/9/2006&amp;tt=1&amp;hy=&amp;zn=2&amp;am=Y");

my $te = HTML::TableExtract-&gt;new( depth =&gt; 3, count =&gt; 3);
$te-&gt;parse($page);

foreach my $ts ($te-&gt;table_states) {
   foreach my $row ($ts-&gt;rows) {
      print join(',', @$row), "\n";
   }
 }

__OUTPUT__
Service,Arrival Date and Time,Days in Transit*
DHL Next Day 10:30 am
 (Letter ű 150 Pounds),Tuesday,áJaná10,á2006 áBy 10:30 A.M.,1
DHL Next Day 12:00 pm
 (Letter ű 150 Pounds),Tuesday,áJaná10,á2006 áBy Noon,1
DHL Next Day 3:00 pm
 (Letter ű 150 Pounds),Tuesday,áJaná10,á2006 áBy 3:00 P.M.,1
DHL 2nd Day Service
 (Letter ű 150 Pounds),Wednesday,áJaná11,á2006 áBy 5:00 P.M.,2
DHL Ground Service
 (Letter ű 150 Pounds),Tuesday,áJaná10,á2006 áBy end of day,1
&lt;/code&gt;</field>
<field name="root_node">
522074</field>
<field name="parent_node">
522074</field>
</data>
</node>
