How can I tell if a Perl module is core or part of the standard install?

前端 未结 7 708
猫巷女王i
猫巷女王i 2020-12-13 06:04

How can I check if a Perl module is part of the core - i.e. it is part of the standard installation?

I\'m looking for:

  • a command-line command:
7条回答
  •  粉色の甜心
    2020-12-13 06:27

    You can use (for example, search for Net::FTP):

    perl -MNet::FTP -e 1
    

    If it doesn't have output, then it's installed.

    Other resources

    perldoc perlmodlib 
    perldoc perllocal
    

    A node from perlmonks

提交回复
热议问题