--- loncom/publisher/testbankimport.pm 2004/02/20 18:18:27 1.3 +++ loncom/publisher/testbankimport.pm 2004/04/23 22:42:05 1.4 @@ -1,5 +1,5 @@ # Handler for parsing text upload problem descriptions into .problems -# $Id: testbankimport.pm,v 1.3 2004/02/20 18:18:27 albertel Exp $ +# $Id: testbankimport.pm,v 1.4 2004/04/23 22:42:05 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1130,7 +1130,7 @@ sub final_display { for (my $k=$numitems+$start[$i]-1; $k<$numitems+$end[$i]; $k++) { @{$answers{$k}} = (); if ($qtype[$i] eq "MC") { - lc $items[$k]; + $items[$k] =~ tr/A-Z/a-z/; $items[$k] =~ s/\W//g; if ($foilformats[$i] eq "lcperiod" || $foilformats[$i] eq "lcparen" || $foilformats[$i] eq "ucparen" || $foilformats[$i] eq "ucperiod") { for (my $j=0; $j<@alphabet; $j++) { @@ -1148,7 +1148,7 @@ sub final_display { } } } elsif (($qtype[$i] eq "MA") || ($qtype[$i] eq "Ord")) { - lc $items[$k]; + $items[$k] =~ tr/A-Z/a-z/; my @corrects = split/$patterns{$ansrtypes[$i]}/,$items[$k]; foreach my $correct (@corrects) { $correct =~s/\W//g;