Subject: | Can't decide a runtime if I need to use SSL |
I am getting
Can't locate object method "configure" via package "Net::HTTPS" at
/usr/local/share/perl/5.10.1/Net/HTTPS.pm
if I specify
"$Net::HTTPS::SSL_SOCKET_CLASS = "IO::Socket::SSL";"
but don't require/use IO::Socket::SSL
if I require IO::Socket::SSL somewhere in conditional block, I am getting
lot's of weird errors like
IO::Socket::SSL::BEGIN(/usr/local/lib/perl/5.10.1/Net/SSLeay.pm:0)
(eval)(/usr/local/share/perl/5.10.1/IO/Socket/SSL.pm:18)
(eval)(/usr/local/lib/perl/5.10.1/Net/SSLeay.pm:367)
XSLoader::load(/usr/local/lib/perl/5.10.1/Net/SSLeay.pm:365)
(eval)(/usr/lib/perl/5.10/XSLoader.pm:94)
main::__ANON__(/usr/lib/perl/5.10/XSLoader.pm:94)
Fatal Error: 1 Can't locate object method "tid" via package "threads" at
/usr/lib/perl/5.10/XSLoader.pm line 94, <GEN3> line 1.
So I cannot write a code which loads SSL modules (which I want) only if
user wants to use SSL.
LWP/Net::HTTPS 6.04
IO::Socket::SSL 1.81