How to install a module in Perl (cpan)

Home > Search > How-to
  by

Installing a module in Perl is incredibly easy, using cpan. cpan is included with the installation of Perl. Simply type cpan on the command line to start the cpan command line prompt.

~]# cpan

 

Then, use the install force module_name command to install a module. In this example, the SSH module is installed.

cpan> force install Net::SSH::Perl

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments