O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). More »
taken from perlfaq8
The easiest way is to have a module also named CPAN do it for you by using the cpan command the comes with Perl. You can give it a list of modules to install:
$ cpan IO::In...