prathap keerthipati has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

Does Perl modules require openSSL to connect to the urls (http, https)?

Replies are listed 'Best First'.
Re: Dependencies of perl Modules
by Corion (Patriarch) on Apr 10, 2017 at 07:54 UTC

    Most modules speaking TLS will need OpenSSL (Net::SSLeay or IO::Socket::SSL, which in turn uses Net::SSLeay again).

    HTTP connections do not use TLS, but HTTPS is HTTP over TLS and will need a module that speaks TLS, like IO::Socket::SSL.

    When you install Perl modules through your OS package manager all libraries will be installed.

    If you install Perl modules through one of the Perl package tools like cpan or cpanm, you will need to separately install the OpenSSL parts through your OS package manager.

      Where to install the openSSL? And after installation how the perl will know about this OpenSSl

        Let your OS package manager worry about where to install openssl. The perl module will look for openssl and you can specify a path if you rolled your own into a non standard location. Did you read the module documentation?