@ret = $eval->eval($body); 1;
} or ($code, @ret) = (ERROR => $@);
$self->_send_response(
- $code => do { local $Data::Dumper::Maxdepth = 1; Dumper @ret }
+ $code => ($code eq 'RESULT'
+ ? do { local $Data::Dumper::Maxdepth = 1; Dumper @ret }
+ : $ret[0]
+ )
);
}