#!perl -w # practice7 - QuizMaker Practice Quiz data parser VERSION 07 # Copyright 1999, Attotron Biosensor Corporation # Permission is hereby granted for non-profit use. # Please do not distribute modified copies without permission (info@attotron.com). # This program is under development - see www.attotron.com/pub/quizmaker.html # Configuration variables: my $image_path = "images/"; # relative path to images my $index_columns = 2; # number of columns for Index table my $def_delimiter = ":"; my $dictionary_text = "dictionary.txt"; # input file my $dictionary_name = "diction.htm"; # output file my $indexfile = "index.htm"; # index of practice quiz pages # globals my %dictionary; # dictionary hash print "Creating dictionary from file \"$dictionary_text\"...\n"; makeDictionary($dictionary_text); print "...dictionary created.\n"; ################################## # CREATE THE PRACTICE QUIZ FILES # # AND INDEX PAGE # ################################## @quiznames = glob("*.quiz"); open(QUIZINDEX, ">$indexfile") || die "Could not open $indexfile: $!"; print QUIZINDEX <
| Index | |
|---|---|
\n
|
|
\n"; } print DICTHTML "\n