in reply to Extract text from repeated html parts
I would recommend you to look at HTML::TreeBuilder