in reply to Grabbing part of an HTML page

open(HTM_FILE, <$_);

Maybe $! would tell you something.