Maybe I am being naive but if all you are doing is requesting a page from a webserver why not use the
LWP series of module(s) instead to retrieve the page which you can then parse through that.
For example from lwpcook:
use LWP::Simple;
$doc = get 'http://www.linpro.no/lwp/';
-enlil