box-o-sand/web/html/cgi-bin/query.cgi

23 lines
250 B
Plaintext
Raw Normal View History

2011-01-03 22:32:50 +00:00
#!/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__