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. | [reply] |
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;
}
| [reply] [d/l] |