Installing modules in Perl
The easiest way to install the Perl modules from CPAN is to use the CPAN module. For e.g. the following command will install the XML::Simple module.
perl -MCPAN -e 'install XML::Simple;'If you wish to view the readme file for a particular module, try this command (I am viewing the readme file for XML::Simple module):
perl -MCPAN -e 'readme XML::Simple;'Another useful way of running CPAN module interactively is to give the following command:
perl -MCPAN -e shellOnce you get the shell prompt "cpan>", try "help" to get to know more useful options. To know more, refer here.