Modules available from Debian
http://packages.debian.org/squeeze/perl/
Example # apt-get install libxml-perl libxml-parser-perl ( etc. etc.)
Modules that are not available from a Debian repository :
# cpan
cpan > install Data::HexDump Text::Truncate ( etc. etc.)
I.e. just type all required modules in one command.
I don't see, how a script should help.
Cpan "Search for module names"
http://search.cpan.org/
.