$lwpcurl->{agent}->setopt( CURLOPT_FILE, \$fh ); $lwpcurl->{agent}->setopt( CURLOPT_FILE, $fh );