I spent a bit of time playing with Perl and decided that using hashes and built in hash/list tools would be the way to go. I developed some snippets that seemed to do the tasks I needed, but when I tried them within a trial problem, I got caught with this message:
'sort' trapped by operation mask at line 30 of (eval 1433)which seemed to tell me that the sort operation in use
30 foreach $key (sort mrg_hashValueAscendingNum (keys(%rankingtask_scores))) { 31 $rankingtask_item_order{$key}=$order; 32 $order=$order+1; 33 }was not allowed in .pg
Which (finally) brings me to my questions:
- Am I reinventing the wheel? Are already question and evaluator styles and mechanisms that do what I am trying to do, but called something else? I didn't see any likely candidates in the wiki, cut could easily have missed.
- Is it possible to get sort to work within a question and/or within an answer evaluation?
- Is there any heavier duty tutorials on writing answer evaluators? I keep running into the old doc's from 1.6 and I'm not sure everything works the same.
-Mike Gallis