2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

標準モジュールのあれこれ

Posted at

標準モジュールのリストを出す

ご存知 corelist

$ corelist -v 5.21.7

The following modules were in perl 5.21.7 CORE
AnyDBM_File                                  1.01
App::Cpan                                    1.62
App::Prove                                   3.34
App::Prove::State                            3.34
...

以下の様に、標準モジュールに含まれるかどうかの確認に使う

$ corelist lib::core::only

Data for 2014-12-20
lib::core::only was not in CORE (or so I think)

標準モジュールのパスを表示する。

常識なのだが、年寄は物忘れしがちなので、、、

lib::core::only

local::lib と一緒に入ってくる。

$ perl -Mlib::core::only -le 'print for @INC'
${HOME}/.anyenv/envs/plenv/versions/5.21.7/lib/perl5/5.21.7
${HOME}/.anyenv/envs/plenv/versions/5.21.7/lib/perl5/5.21.7/darwin-2level

Config

標準モジュールだけで確かめるなら1

$ perl -MConfig -le 'print for @Config{qw(privlibexp archlibexp)}'
  1. 上の lib::core::only のソースを見れば分る事だけど。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?