The tcsh mailing lists
Up
The tcsh mailing lists
There are three tcsh mailing lists:
-
tcsh@mailman.astron.com
-
The tcsh maintainers and testers' mailing list.
-
tcsh-bugs@astron.com
-
Open bug and user comment discussion.
You can subscribe to either of these lists by visiting
https://mailman.astron.com/
To file a bug report or a feature suggestion (preferably
with code), please visit
https://bugs.astron.com/
Up
END
: # -*- perl -*-
# Emulate #!/usr/local/bin/perl on systems without #!
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q' if 0;
# Setup
# Location: doesn't work with relative URLs, so we need to know where to find
# the top and section files.
# If the search engine is in /cgi-bin, we need a hard-coded URL.
# If the search engine is in the same directory, we can figure it out from CGI
# environment variables.
$root = ROOTHERE;
$topfile = 'TOPFILEHERE';
@name = (
'NAMEHERE'
);
# Do the search
$input = $ENV{'QUERY_STRING'};
$input =~ s/^input=//;
$input =~ s/\+/ /g;
print "Status: 302 Found\n";
if ($input ne '' && ($key = (grep(/^$input/, @name))[0] ||
(grep(/^$input/i, @name))[0] ||
(grep( /$input/i, @name))[0] )) {
$key =~ /\t([^\t]*)$/;
print "Location: $root$1\n\n";
} else {
print "Location: $root$topfile\n\n";
}
END