use strict; require WWW::Curl::Easy; import WWW::Curl::Easy; my $curl = WWW::Curl::Easy->new; $curl->setopt(CURLOPT_HEADER,0); # boom #### use strict; require WWW::Curl::Easy; import WWW::Curl::Easy; my $curl = WWW::Curl::Easy->new; $curl->setopt(WWW::Curl::Easy::CURLOPT_HEADER,0); # or wherever CURLOPT_HEADER gets declared