I'm writing a small Perl script that depends on some modules that might be available, so during the installation I would have to check if everythings there. I could just write use some::module
and see if an error comes up, but a short message like "You need to install some::module" would be more helpful for endusers.
I also could just search every directory in @INC
, but as it's Perl, there has to be an easier way.