#!/usr/local/bin/perl require '/u/staff/paul/cgi_lib.pl'; print &PrintHeader(); if ($ENV{'REQUEST_METHOD'} ne "POST") { print "
"; print "This script can only be used with the POST METHOD\n"; print "If you don't understand this, see this "; print "forms overview.\n"; print ""; exit(1); }; if ($ENV{'CONTENT_TYPE'} ne "application/x-www-form-urlencoded") { print "
";
print "This script can only be used to decode form results. \n";
print "";
exit(1);
};
do ReadParse();
print "";
print "The search string ", $in{'search'}," produced the following output:\n\n";
open (LOG,"){
if (/$in{'search'}/){
print if ($in{'all_lines'} eq "on");
$i++;
};
};
print "The number of lines that ",$in{'search'}, " occurs is: ",$i,"" if($in{'summary'} eq "on" );
print "";