and think about that the body tag can have attributes so you would fail to match <body> in case yo have a page with <body leftmargin="30" topmargin="50"> But I recommend only to also have a look into HTML::Tokeparser
Comment on Re: How do I read the contents of an HTML file between two BODY tags?