#33 Flash Cards
Unfortunately, there's still a lot of learning that requires memorization and drill. I still remember the hours I spent typing up 3×5-inch cards with my weekly French vocabulary on them.
The system I used was to go through each word one at a time. If I got the word right, the flash card was set aside. Get it wrong and the card went to the back of the stack so I could try again later.
I got pretty good at learning my French vocabulary. Unfortunately, after I passed the weekly quiz, I got good at forgetting things as well.
This script automates the process I went through with my 3×5-inch cards and gives the user a vocabulary drill.
The Code
1 use strict; 2 use warnings; 3 4 # 5 # perl lang.pl <flash file> 6 # 7 # File format: ...
Get Wicked Cool Perl Scripts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.