CPAN installations
Explore how to install Perl modules with the CPAN client and alternative tools like cpanminus, perlbrew, and local::lib. Understand Perl environment management, prerequisite tools, and best practices for maintaining multiple Perl installations to enhance your development workflow.
Installations with cpan
Modern Perl installations include a client to connect to, search, download, build, test, and install CPAN distributions; this is CPAN.pm. With a recent version (as of this writing, 2.35 is the latest stable release), module installation is reasonably easy.
Start the client with this command:
cpan
To install a distribution within the client, use this:
cpan[1]> install Modern::Perl
...