my $response_body; open (my $fileb, ">", \$response_body); $curl->setopt(CURLOPT_WRITEDATA,$fileb);