in reply to How to install a CPAN module

Since Data::Dumper is a core module, there is no need to install it. You can verify that it is installed as follows:
perldoc -l Data::Dumper

For XML::Simple and other CPAN modules, refer to Tutorials > Modules: How to Create, Install, and Use > Installing Modules

Update: Another valuable tool here at the Monastery is Super Search. Since this question has been asked frequently, there is much detailed information on the topic.