1 package SL::InstallationCheck;
3 use vars qw(@required_modules);
6 { "name" => "Class::Accessor", "url" => "http://search.cpan.org/~kasei/" },
7 { "name" => "CGI", "url" => "http://search.cpan.org/~lds/" },
8 { "name" => "CGI::Ajax", "url" => "http://search.cpan.org/~bct/" },
9 { "name" => "DBI", "url" => "http://search.cpan.org/~timb/" },
10 { "name" => "DBD::Pg", "url" => "http://search.cpan.org/~dbdpg/" },
11 { "name" => "HTML::Template", "url" => "http://search.cpan.org/~samtregar/" },
12 { "name" => "Archive::Zip", "url" => "http://search.cpan.org/~adamk/" },
13 { "name" => "Text::Iconv", "url" => "http://search.cpan.org/~mpiotr/" },
14 { "name" => "Time::HiRes", "url" => "http://search.cpan.org/~jhi/" },
17 sub module_available {
20 if (!defined(eval("require $module;"))) {
27 sub test_all_modules {
30 map({ push(@missing_modules, $_) unless (module_available($_->{"name"})); }
33 return @missing_modules;