http://qs321.pair.com?node_id=1083858

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

$d = HTTP::Daemon::SSL->new( LocalPort => $bkportnum, LocalAddr => '10.0.0.1', ) or carp("Unable to create new HTTP::Daemon::SSL object" . Dumper(+{ port => $bkportnum, strbang => $!, SSL_ERROR => $SSL_ERROR, retval => $d, strat => $@, }) . ".");

This used to work just fine. Then it stopped working, and there's no error message. $! and $@ are both empty strings, and $d and $SSL_ERROR are both undef.

Is there a good way to debug something like this, other than by ripping out HTTP::Daemon::SSL and replacing it with an entirely different module?

And if I did want to replace it with a different module (say, with one that produces error messages when appropriate), does anybody have a recommendation?

Update: I ended up throwing the whole thing out and using Net::OpenSSH instead, making the problem moot and also nicely circumventing the need to listen on an extra port into the bargain.