Debian – download and install from CPAN
root~# dh-make-perl --install --cpan Foo::Bar
Linux – download and install from CPAN
root~# perl -MCPAN -e shell
cpan> install Foo::Bar
For example:
DBI is a database-independent interface for the Perl programming language. DBD::mysql is the driver for connecting to MySQL database servers with DBI.
DBI is the basic abstraction layer for working with databases in Perl.
DBD::mysql is the driver for using MySQL with DBI.
Net::MySQL is a pure-Perl implementation of the MySQL client-server protocol. (It is not necessary when using DBI with DBD::mysql, but may be useful in environments where you are not able to compile the MySQL client library required by DBD::mysql.)
root~# perl -MCPAN -e shell
cpan> install DBI
cpan> install DBD::mysql
cpan> install Net::MySQL
or
root~# cpan -f DBI
root~# cpan -f DBD::mysql
root~# cpan -f Net:MySQL
Where -f stands for: Forces the specified action, when it normally would have failed.
Most of the time I had used cpan -f 😉