#!/usr/bin/perl #Generate page of abstracts based on contents of files # R. Groman March 17, 1997 #Assumptions # top level of directory tree is 1st arg in query string # directory to be looked at is 2nd arg in query string # Query string arg. are separated by & # Expects start of html files to at ../htdocs/.. print "Content-type: text/html\n\n"; if ($ENV{'QUERY_STRING'}) { $arg = ( $ENV{'QUERY_STRING'} ); } else { die "Could not access query string with directory information"; } $topdir="$arg"; $topdir=~ s/(.*)&.*/\1/; $subdirectory="$arg"; $subdirectory=~ s/(.*)&(.*)/\2/; ##print "\ndebug: topdir=$topdir\n\t subdirectory=$subdirectory\n"; $dir="$topdir" . "$subdirectory"; $htdocs="$dir"; $htdocs=~s/(.*)htdocs(.*)/\2/; ##print "\ndebug: htdocs=$htdocs\n"; chdir($dir) || die "Cannot change to $dir directory"; $topic="$subdirectory"; $topic=~ s/(.*)s/\1/; print "
${reference}...: ";
print "$_\n";
while (