in reply to Re: Ubuntu 14.04.1 & Net::SSLGlue::POP3
in thread Ubuntu 14.04.1 & Net::SSLGlue::POP3

Thank you. Any suggestion for managing SSL and non-SSL POP3 library at the same script? I have this script running on a server, which sounds like have no SSL POP3 library yet, and I am not comfortable yet to upgrade it there, but development machine is my new ubuntu laptop, which has SSL enabled in the library.
  • Comment on Re^2: Ubuntu 14.04.1 & Net::SSLGlue::POP3

Replies are listed 'Best First'.
Re^3: Ubuntu 14.04.1 & Net::SSLGlue::POP3
by noxxi (Pilgrim) on Apr 28, 2015 at 06:01 UTC
    It's not a good idea to have a test setup which does not reflect the production setup, because then the results of your tests are not really trustworthy. Apart from the you might try a conditional load, i.e. something like this
    use Net::POP3; BEGIN { require Net::SSLGlue::POP3 if !defined &Net::POP3::starttls; }
      Thanks, works.