# perl -MCPAN -e shell
If this is the first time you've run CPAN, it's going to ask you a series of questions - in most cases the default answer is fine and finally you should see the cpan> command prompt, installing a module is as easy as install MODULE::NAME - for example, to install the HTML::Template module you'd type:
cpan> install HTML::Template
CPAN should take it from there and you'll wind up with the module installed into your Perl library.
Another way -- Let's say you're on your system command line and you just want to install a module as quickly as possible - you can run the Perl CPAN module via command line perl and get it installed in a single line:
# perl -MCPAN -e 'install HTML::Template'
Another way -- is to grab the required file using wget. Next you'll want to unzip it with something like:
# tar -zxvf HTML-Template-2.8.tar.gz
This will unzip the module into a directory, then you can move in and look for the README or INSTALL files. In most cases, installing a module by hand is still pretty easy, though (although not as easy as CPAN). Once you've switched into the base directory for the module, you should be able to get it installed by typing:
# perl Makefile.PL
# make test
# make install