in reply to Re: (jeffa) Re: Efficient Rating of Test Answers
in thread Efficient Rating of Test Answers

Very nice!

How about generating the table with Perl instead of a text editor? I'll just borrow the regexes you and enoch provided, if you don't mind :D

my %lookup; foreach my $alpha ('a'..'k') { foreach my $numb (0..9) { $_ = $alpha . $numb; $lookup{$_} = /^g[6-9]$/ ? 1 : /^[gk][0-5]$/ ? .5 : 0; } }
however, this is not very efficient if your memory is tied behind your back. ;)

----------------------------------------------------
 perl -le '$x="jeff";$x++ for(0..4482550);print $x'
----------------------------------------------------