How can I check if a Perl module is installed on my system from the command line?

前端 未结 10 1154
旧巷少年郎
旧巷少年郎 2020-12-07 14:33

I tried to check if XML::Simple is installed in my system or not.

perl -e \'while (<@INC>) { while (<$_/*.pm>) { print \"$_\\n\"; } }\'
         


        
10条回答
  •  伪装坚强ぢ
    2020-12-07 15:21

    If you're running ActivePerl under Windows:

    • C:\>ppm query * to get a list of all installed modules

    • C:\>ppm query XML-Simple to check if XML::Simple is installed

提交回复
热议问题