Maybe $! would tell you something.
In reply to Re: Grabbing part of an HTML page by jZed in thread Grabbing part of an HTML page by kingdean