Debian Codegraph @

checkconfig.cgi

raw
1 #!/usr/bin/perl
2 use strict;
3 my $crlf = "\015\012";
4
5 print "Content-Type: text/html$crlf$crlf",
6 "<html>\n<body>\n",
7 "<p><b>Required Modules</b><br>\n";
8
9 for my $module (qw(strict CGI File::Basename Getopt::Long HTML::Parser
10 LWP::UserAgent POSIX Text::Template URI URI::URL)) {
11 print "checking for <b>$module</b>... ";
12 eval "use $module";
13 print $@ ? substr($@,0,index($@," at ")) : "ok";
14 print "<br>\n";
15 }
16
17 print "</p>\n<p><b>Optional Modules</b><br>\n";
18
19 for my $module (qw(XML::Parser XML::LibXML XML::Checker::Parser)) {
20 print "checking for <b>$module</b>... ";
21 eval "use $module";
22 print $@ ? substr($@,0,index($@," at ")) : "ok";
23 print "<br>\n";
24 }
25
26 print "</p>\n</body>\n</html>\n";