<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid46428527.7000202@perltraining.com.au" type="cite">
  <blockquote type="cite">
    <pre wrap="">Just wanted some people's thoughts on what the 'best' way to install
perl modules on linux is: CPAN or your distro's package manager.
    </pre>
  </blockquote>
  <pre wrap=""><!---->[snipped]

Building a debian package from CPAN is usually as simple as:

        dh-make-perl --build --cpan Example::Module

You can even change --build to --install if you want to speed the process.
If you don't have dh-make-perl, you can use:

        apt-get install dh-make-perl

to install it.

In this way, you can use pre-built packages for most of your modules, and
dh-make-perl packages to fill in the gaps.
  </pre>
</blockquote>
Likewise, this applies for Gentoo as well:<br>
<br>
g-cpan -i &lt;CPAN module&gt;<br>
<br>
will look for an existing gentoo package of the module; if not found,
it will fetch the CPAN version and create a gentoo package; then
install the package into the dependency tree.<br>
<br>
Mathew<br>
</body>
</html>