--- loncom/xml/run.pm 2000/11/20 17:34:05 1.13 +++ loncom/xml/run.pm 2001/01/04 19:14:10 1.14 @@ -53,12 +53,17 @@ sub run { my ($code,$safeeval) = @_; # print "inside run\n"; $@=''; - my $result=$safeeval->reval($code); + my (@result)=$safeeval->reval($code); if ($@ ne '') { &Apache::lonxml::error(":$code:caused"); &Apache::lonxml::error($@); } - return $result; + if ( $#result < '1') { + return $result[0]; + } else { + &Apache::lonxml::debug("Got lots results:$#result:"); + return (@result); + } } 1;