in reply to Using Perl to snip the end off of HTML
How are you defining the end of the document?
TheStudent