Just because you've upgraded the openssl binary does not meant that you've also upgraded the OpenSSL library within Perl. It might be linked against the old version of OpenSSL which still might be on your system. What does print Net::SSLeay::OPENSSL_VERSION_NUMBER() give?