| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: setopt(CURLOPT_*,$curlopthash->{$option}) apparently doesn't work
From: Colin Hogben <curl_at_pythontech.co.uk>
Date: Thu, 09 Oct 2008 10:20:10 +0100
Wurtz, Frederick (GE, Research, consultant) wrote:
$ perl -e 'use WWW::Curl::Easy; print CURLOPT_URL'
Perl treats the bare token before '=>' as a string. Compare:
$ perl -e 'use WWW::Curl::Easy; %x=(CURLOPT_URL=>'foo'); print join("
$ perl -e 'use WWW::Curl::Easy; %x=(CURLOPT_URL,'foo'); print join(" ",%x);'
Similar magic happens between curlies:
gen-off-27:~/Incoming/WWW-Curl-3.12
$ perl -e 'use WWW::Curl::Easy; $x{CURLOPT_URL}='foo'; print join(" ",%x);'
$ perl -e 'use WWW::Curl::Easy; $x{(CURLOPT_URL)}='foo'; print join("
Hope this helps
-- Colin HogbenReceived on 2008-10-09 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info