如何列出 Perl 的 cpan 使用的配置变量的当前设置?
How can list the current settings of config variables used by Perl's cpan?
在 cpan
的众多命令行选项中,哪个报告当前在 cpan
中设置的配置变量?我对 o conf
进行了一些更改,想看看这些值是否已正确设置,因为我看不到它们的效果。
perldoc cpan
:
-J
: Dump the configuration in the same format that CPAN.pm uses. This is
useful for checking the configuration as well as using the dump as a
starting point for a new, custom configuration.
您还应该能够通过 运行 CPAN shell:
获得相同(或可能更多)的信息
$ perl -MCPAN -e shell
cpan shell -- CPAN exploration and modules installation (v2.16)
Enter 'h' for help.
cpan[1]> o conf
$CPAN::Config options from C:\...\.cpan/CPAN/MyConfig.pm:
...
applypatch []
auto_commit [0]
build_cache [100]
build_dir [C:\...\.cpan\build]
build_dir_reuse [0]
build_requires_install_policy [yes]
bzip2 [C:\opt\bin\bzip2.EXE]
...
在 cpan
的众多命令行选项中,哪个报告当前在 cpan
中设置的配置变量?我对 o conf
进行了一些更改,想看看这些值是否已正确设置,因为我看不到它们的效果。
perldoc cpan
:
-J
: Dump the configuration in the same format that CPAN.pm uses. This is useful for checking the configuration as well as using the dump as a starting point for a new, custom configuration.
您还应该能够通过 运行 CPAN shell:
获得相同(或可能更多)的信息 $ perl -MCPAN -e shell
cpan shell -- CPAN exploration and modules installation (v2.16)
Enter 'h' for help.
cpan[1]> o conf
$CPAN::Config options from C:\...\.cpan/CPAN/MyConfig.pm:
...
applypatch []
auto_commit [0]
build_cache [100]
build_dir [C:\...\.cpan\build]
build_dir_reuse [0]
build_requires_install_policy [yes]
bzip2 [C:\opt\bin\bzip2.EXE]
...