How To Install Multiple Perl Modules From The Command Line

Published Date Author: , Posted July 14th, 2010 at 12:26:42am

Create a text file containing the list of desired modules, one per line. Name it “modules.txt”.

Then execute this command:

for module in cat modules.txt; do echo $module; perl -MCPAN -e "install $module"; done

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.