Yes, this is exactly what I had in mind. Thanks. I've been trying to learn Perl in order to understand webwork; I actually really like Perl (it's curiously flexible and fast) but the syntax is a beast. It will take me awhile to learn how to write that subroutine.
2017 Problem Authoring Workshop
pop-up True-False statements + essay
The cut-off date for posting to this forum is reached so you can no longer post to it.