#!/usr/bin/perl -T $ENV{PATH} = "/bin:/usr/bin"; print "Content-type:text/html\n\n"; $topic = $ENV{'QUERY_STRING'}; print "
\n";
foreach $i (@out) {
# man pages are formatted with nroff, so we have to remove the
# control characters from them with this regexp.
$i =~ s/.\cH//g;;
# now print the line
print $i;
}
print "\n";
print "\n";
sub dienice {
($errmsg) = @_;
print "\n"; print "