Wednesday, May 7, 2008

perl: oneliner to check if a given module is installed on your system

Let's say that you want to know whether module Tie::Hash is installed. To find out, execute the following from the command line:

perl -MTie::Hash -e 1


Source

No comments: