Simple PERL Script for Memorization

This is a simple flashcard style memorization tool. It simply asks a question, waits for an answer, and then shows the answer. It does not keep score or care if you type an answer at all.

The idea is to go through a test a couple of times until you get the answers right and then repeat it periodically until the information is memorized. Instructions are below.

The Script

Test Files

COMM 380
IPA

COMM 380
Module 1 Vocabulary

CMIS 325
Chapter 4 - vi / vim Editor

Instructions

This script requires PERL which you can get from cpan.org if you do not already have it. (Windows users, ActivePerl is likely the distribution you want.)

Copy files to a single directory.
Linux/Unix users need to "chmod +x test.pl".

Running the script

Windows.
c:\perl\ test.pl mod1.txt
Linux/Unix.
# test.pl mod1.txt
test.pl question_file

More Detailed Instructions

Installation on School Server

Create Directory.
# mkdir test
# cd test
Create test.pl
# vi test.pl
i
Copy and paste test.pl code into editor.
highlight, CTRL C, CTRL V
ESC
:wq
On Unix, make file executable.
# chmod 750 test.pl

Installing a Test

Create question/answer file.
# vi vi_reg_exp.txt
i
Copy and paste reg_exp test into editor.
highlight, CTRL C, CTRL V
ESC
:wq

Running the Script

On school server...
# ./test.pl vi_reg_exp.txt

On Windows with PERL...
> perl test.pl vi_reg_exp.txt
> test.pl vi_reg_exp.txt

Example

Run the script with the test file as the first argument.
# ./test.pl vi_edit.txt
Loading file: vi_edit.txt
1. Delete character under cursor
x
x
2. Delete character under cursor and 5 more to right

Press ENTER to view answer and advance to next question.
6x
3. Delete previous character

Press CTRL C to cancel before the end if you want.

Note, you can name the script to 't.pl' or 't' if you want to reduce typing.

Create a Test

Create a text file in the form of:
question#answer
question#answer
question#answer
question#answer

Send corrections, comments, and additions to me at t@cattail.nu.

Visitor