Subject: | don't die on non-CPAN modules |
Currently sub _cpan_version dies if a module can't be found on CPAN (line 74).
If this is changed to a 'or return ();' instead the output just doesn't contain a CPAN version.
Another possibility would be to return a fixed string, possibly all uppercase, to notify/warn the user that the module couldn't be found on CPAN.
This happens for almost all our apps and modules that require at least one of our inhouse DarkPAN modules.