my $safeIfTheOnlyOne = threads->create('oneAndOnlyMailer', 'argument') +; sub oneAndOnlyMailer { require IO::Socket::SSL; require Mail::IMAPClient ; require Net::IMAP::Simple::SSL; ... }
If you need multiple mailers, then it would pay to make IO::Socket::SSL thread-safe
In reply to Re: Thread-safe SSL IMAP
by Anonymous Monk
in thread Thread-safe SSL IMAP
by gxbacher
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |