Files
tldr/pages.zh/common/perlbrew.md

37 lines
715 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# perlbrew
> 在主目录中管理 Perl 安装。
> 另见:`asdf`。
> 更多信息:<https://github.com/gugod/App-perlbrew>。
- 初始化 `perlbrew` 环境:
`perlbrew init`
- 列出可用的 Perl 版本:
`perlbrew available`
- 安装/卸载 Perl 版本:
`perlbrew {{install|uninstall}} {{version}}`
- 列出 Perl 安装:
`perlbrew list`
- 切换到一个安装并将其设置为默认:
`perlbrew switch perl-{{version}}`
- 再次使用系统 Perl
`perlbrew off`
- 列出当前使用的安装中已安装的 CPAN 模块:
`perlbrew list-modules`
- 从一个安装克隆 CPAN 模块到另一个安装:
`perlbrew clone-modules {{source_installation}} {{destination_installation}}`