2424 manipulation methods. More of these may be added as it
2525 becomes necessary.
2626
27- Useage: $rh_ans = new AnswerHash;
27+ Usage: $rh_ans = new AnswerHash;
2828
2929 AnswerEvaluator -- this class organizes the construction of
3030 answer evaluator subroutines which check the
3737 thus greatly reducing the programming and maintenance
3838 required for constructing answer evaluators.
3939
40- Useage: $ans_eval = new AnswerEvaluator;
40+ Usage: $ans_eval = new AnswerEvaluator;
4141
4242=cut
4343
@@ -203,14 +203,14 @@ sub setKeys {
203203
204204=head4 data
205205
206- Useage: $rh_ans->data('foo'); set $rh_ans->{student_ans} = 'foo';
206+ Usage: $rh_ans->data('foo'); set $rh_ans->{student_ans} = 'foo';
207207 $student_input = $rh_ans->data(); retrieve value of $rh_ans->{student_ans}
208208
209209 synonym for input
210210
211211=head4 input
212212
213- Useage: $rh_ans->input('foo') sets $rh_ans->{student_ans} = 'foo';
213+ Usage: $rh_ans->input('foo') sets $rh_ans->{student_ans} = 'foo';
214214 $student_input = $rh_ans->input();
215215
216216 synonym for data
@@ -231,7 +231,7 @@ sub input { #$rh_ans->input('foo') is a synonym for $rh_ans->{student_ans}='
231231
232232=head4 input
233233
234- Useage: $rh_ans->score(1)
234+ Usage: $rh_ans->score(1)
235235 $score = $rh_ans->score();
236236
237237 Retrieve or set $rh_ans->{score}, the student's score on the problem.
@@ -266,7 +266,7 @@ sub stringify_hash {
266266
267267=head4 throw_error
268268
269- Useage: $rh_ans->throw_error("FLAG", "message");
269+ Usage: $rh_ans->throw_error("FLAG", "message");
270270
271271 FLAG is a distinctive word that describes the type of error.
272272 Examples are EVAL for an evaluation error or "SYNTAX" for a syntax error.
@@ -279,7 +279,7 @@ sub stringify_hash {
279279
280280=head4 catch_error
281281
282- Useage: $rh_ans->catch_error("FLAG2");
282+ Usage: $rh_ans->catch_error("FLAG2");
283283
284284 Returns true (1) if $rh_ans->{error_flag} equals "FLAG2", otherwise it returns
285285 false (empty string).
@@ -288,7 +288,7 @@ sub stringify_hash {
288288
289289=head4 clear_error
290290
291- Useage: $rh_ans->clear_error("FLAG2");
291+ Usage: $rh_ans->clear_error("FLAG2");
292292
293293 If $rh_ans->{error_flag} equals "FLAG2" then the {error_flag} entry is set to
294294 the empty string as is the entry {error_message}
@@ -297,7 +297,7 @@ sub stringify_hash {
297297
298298=head4 error_message
299299
300- Useage: $flag = $rh_ans -> error_flag();
300+ Usage: $flag = $rh_ans -> error_flag();
301301
302302 $message = $rh_ans -> error_message();
303303
@@ -352,7 +352,7 @@ sub error_message {
352352# =head4 pretty_print
353353#
354354#
355- # Useage: $rh_ans -> pretty_print();
355+ # Usage: $rh_ans -> pretty_print();
356356#
357357#
358358# Returns a string containing a representation of the AnswerHash as an HTML table.
@@ -396,7 +396,7 @@ sub error_message {
396396
397397=head4 OR
398398
399- Useage: $rh_ans->OR($rh_ans2);
399+ Usage: $rh_ans->OR($rh_ans2);
400400
401401 Returns a new AnswerHash whose score is the maximum of the scores in $rh_ans and $rh_ans2.
402402 The correct answers for the two hashes are combined with "OR".
@@ -408,7 +408,7 @@ sub error_message {
408408=head4 AND
409409
410410
411- Useage: $rh_ans->AND($rh_ans2);
411+ Usage: $rh_ans->AND($rh_ans2);
412412
413413 Returns a new AnswerHash whose score is the minimum of the scores in $rh_ans and $rh_ans2.
414414 The correct answers for the two hashes are combined with "AND".
@@ -817,7 +817,7 @@ sub rh_ans {
817817A filter is a subroutine which takes one AnswerHash as an input, followed by
818818a hash of options.
819819
820- Useage: filter($ans_hash, option1 =>value1, option2=> value2 );
820+ Usage: filter($ans_hash, option1 =>value1, option2=> value2 );
821821
822822
823823The filter performs some operations on the input AnswerHash and returns an
0 commit comments