[system] / trunk / webwork-modperl / lib / WeBWorK / Utils.pm Repository:
ViewVC logotype

Diff of /trunk/webwork-modperl/lib/WeBWorK/Utils.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 444 Revision 445
84sub decodeAnswers($) { 84sub decodeAnswers($) {
85 my $string = shift; 85 my $string = shift;
86 return unless defined $string and $string; 86 return unless defined $string and $string;
87 my @array = split m/##/, $string; 87 my @array = split m/##/, $string;
88 $array[$_] =~ s/\\#\\/#/g foreach 0 .. $#array; 88 $array[$_] =~ s/\\#\\/#/g foreach 0 .. $#array;
89 push @array, "" if @array%2;
89 return @array; # it's actually a hash ;) 90 return @array; # it's actually a hash ;)
90} 91}
91 92
92sub encodeAnswers(\%\@) { 93sub encodeAnswers(\%\@) {
93 my %hash = %{ shift() }; 94 my %hash = %{ shift() };

Legend:
Removed from v.444  
changed lines
  Added in v.445

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9