This is answered in the Perl FAQ, the answer which can be quickly found with perldoc -q installed
. In short, it comes down to using ExtUtils::Installed
or using File::Find
, variants of both of which have been covered previously in this thread.
You can also find the FAQ entry “How do I find which modules are installed on my system?” in perlfaq3. You can see a list of all FAQ answers by looking in perlfaq