Its even easier to install perl modules with the CPAN shell. Try typing 'cpan' at the command prompt. If that doesn't work, run the following script:
Code:
#!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0; # not running under some shell
use CPAN;
shell;
All you have to do is type "install Example::Module" and it will download, complile and install the module. It will also download
and install any other perl modules that the module you're installing requires.
The cpan shell is great for simple installations where everything works the first time. If you need to install library files or if you have problems compiling you're probably better off eschewing the cpan shelling and compiling by hand.