View Single Post
  #2 (permalink)  
Old June 18th, 2009, 11:50 AM
ciderpunx ciderpunx is offline
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

HTML::Parser could do this. There's a pretty good tutorial. I don't have the link, but you should be able to google it. Otherwise, read the file into an array, parse the array backwards, so that you know how many row elements you've hit by the time you get to the table declaration
__________________
--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
Reply With Quote