simple CGI stuff

This commit is contained in:
Dan Buch 2011-01-03 17:32:50 -05:00
parent 080b7ba992
commit 66f6eaff61

22
web/html/cgi-bin/query.cgi Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env perl
use strict;
use warnings;
use CGI;
sub main {
my $query = CGI->new();
my $search = $query->param('q');
print $query->header();
print "You searched for: ", $query->escapeHTML($search);
}
main();
1;
__END__