User Tools

Site Tools


Perl tips

Installing mod_perl


Enter the perl CPAN shell:

  • perl -MCPAN -e shell

List installed module versions:

  • perl -MCPAN -e 'CPAN::Shell->r'

List installed module versions (from inside the shell):

  • r

Reconfigure cpan

  • perl -MCPAN -e 'o conf init'

Living with CPAN

Good tips on using CPAN:

You can reconfigure CPAN completely by using 'o conf init' at the cpan prompt. Or you can configure a single option with o conf followed by the option and the values you want to set. Then use 'o conf commit' to save the changes permenantly. Entering just 'o conf' will show the current settings

Installing modules in other paths


Installing through CPAN is dangerous because it doesn't have an uninstall command and modules you install are not registered in a package manager (and therefore can only be removed manually). Use cpan2rpm to create RPMs from CPAN modules:

  • Install:
# rpm -Uvh ~alan/cpan2rpm-2.028-1.noarch.rpm
perl.txt · Last modified: 2010/05/22 14:19 by