Subject: | Supplying the Debug option also sets $IO::Socket::SSL::DEBUG and this should be documented |
Hi,
Supplying Debug => 1 to the Net::SMTPS constructor sets the global variable
$IO::Socket::SSL::DEBUG to 1 also. This is surprising because enabling
Net::SMTPS debugging has the effect of enabling IO::Socket::SSL debugging
in unrelated code.
While it's pretty much impossible to remedy this given the structure of
Net::SMTPS, it should be documented so that callers can do something
like:
{
local $IO::Socket::SSL:DEBUG;
# Do something with Net::SMTPS
}
to isolate the changes to $IO::Socket::SSL::Debug
Regards,
Dianne.