--- loncom/interface/spreadsheet/assesscalc.pm 2006/12/21 02:54:19 1.57 +++ loncom/interface/spreadsheet/assesscalc.pm 2007/01/23 01:36:26 1.58 @@ -1,5 +1,5 @@ # -# $Id: assesscalc.pm,v 1.57 2006/12/21 02:54:19 albertel Exp $ +# $Id: assesscalc.pm,v 1.58 2007/01/23 01:36:26 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -852,7 +852,7 @@ sub sett { # Replace 'A0' with the value from 'A0' $t{$cell}=~s/(^|[^\"\'])([A-Za-z]\d+)/$1\$sheet_values\{\'$2\'\}/g; # Replace parameters - $t{$cell}=~s/(^|[^\"\'])\[([^\]]+)\]/$1.$self->expandnamed($2)/ge; + $t{$cell}=~s/(^|[^\"\'])\[([^\]]+)\]/$1.$self->expandnamed($2)/sge; } } # @@ -871,7 +871,7 @@ sub sett { $t{$cell}=$formula; $t{$cell}=~s/\.\.+/\,/g; $t{$cell}=~s/(^|[^\"\'])([A-Za-z]\d+)/$1\$sheet_values\{\'$2\'\}/g; - $t{$cell}=~s/(^|[^\"\'])\[([^\]]+)\]/$1.$self->expandnamed($2)/ge; + $t{$cell}=~s/(^|[^\"\'])\[([^\]]+)\]/$1.$self->expandnamed($2)/sge; } } # Put %t into the safe space