Subject: | perldoc fails on https without non-core modules; resulting message not helpful |
perldoc can serve pod from http-served .pm files just fine, and this is very good. But it's becoming increasingly popular for servers to redirect to https (metacpan, github, ...) and perldoc will fail with an unhelpful message
No documentation found for "https://metacpan.org/source/.../DBIC.pm"
The code could catch if the failure URL matches ^https, check if require IO::Socket::SSL or require Net::SSLeay fails, and append the error message with a suggestion to install the missing module. (Note that checking the original URL isn't enough.)
thanks,
Nic