linux perl 模块路径,如何找到Perl模块的安装位置?

我创建了

whichpm,一个跨平台CLI(Linux,OSX,Window),通过模块(包)名定位已安装的Perl模块,并且可选地报告有关它们的信息,包括检测偶然的重复。

例子

# Locate the Data::Dumper module.

$ whichpm Data::Dumper

/usr/lib/perl/5.18/Data/Dumper.pm

# Locate the Data::Dumper module,and also print

# version information and core-module status.

$ whichpm -v Data::Dumper

Data::Dumper 2.145 core>=5.005 /usr/lib/perl/5.18/Data/Dumper.pm

# Locate the Data::Dumper module and open it in your system's default text

# editor.

$ whichpm -e Data::Dumper

# Look for accidental duplicates of the Foo::Bar module.

# Normally,only 1 path should be returned.

$ whichpm -a Foo::Bar

/usr/lib/perl/5.18/Foo/Bar.pm

./Foo/Bar.pm

# Print the paths of all installed modules.

$ whichpm -a

安装

先决条件:安装了Perl v5.4.50或更高版本的Linux,OSX或Windows。

从npm注册表安装

[sudo] npm install whichpm -g

手动安装(OSX和Linux)

>下载the CLI。>使它可执行的chmod x whichpm。>将其移动或符号链接到$ PATH中的文件夹,例如/usr/local/bin(OSX)或/ usr / bin(Linux)。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值