hi there - tried to install perl module with the following command -

cpan[3]> -MCPAN -e 'install LWP::UserAgent'
Unknown shell command '-MCPAN'. Type ? for help.

but this fails

btw. have had a look at the following page - #A Guide to Installing Modules

an article that was published on Nov 28, 2001 at 20:18 UTC ( #128077=perltutorial: print w/replies, xml ) Need Help??
This is a brief guide to installing modules. For some background on what a module is and where they live on the system see the Simple Module Tutorial

The Basics of Module Installation

Most modules are available from CPAN - the Comprehensive Perl Archive Network. They are supplied in what is known as a tarball. A tarball is a gzip compressed tar file. When a module is made the directory structure it lives in is converted to a single file that contains both the files and the directory information. A program called tar performs this function and the resultant file is called a tar file. Tar files have a .tar file extension. This tar file is then compressed using the gzip (GNU Zip) program. Gzipped files have a .gz extension thus a standard module will be called something like:

look forward to hear from you


found out that it works like so:

install LWP::UserAgent

now all is solved..