kiboro has asked for the wisdom of the Perl Monks concerning the following question:
Which let's me return the response with return $response_body, but I'd rather return a filehandle.my $response_body; open (my $fileb, ">", \$response_body); $curl->setopt(CURLOPT_WRITEDATA,$fileb);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can I return a filehandle from Curl?
by derby (Abbot) on Apr 21, 2009 at 11:07 UTC | |
|
Re: Can I return a filehandle from Curl?
by Anonymous Monk on Apr 21, 2009 at 10:36 UTC |