How To Check If a Perl Module Exists

To quickly check if a certain module is installed in your environment, do this from the command line

perl -MModuleName -e 1

If the prompt comes back with no message, then the module exists. Otherwise, if it comes back with a “Can’t Locate…” message, it’s not available.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.