in reply to I want to Split html pages
You may find HTML::TreeBuilder is helpful in rendering chunks of HTML from an HTML document.