in reply to Cutting big HTML file

Not much to add except, have you taken a look at HTML::Parser?