<%def .helper>
% my $interp = $m->interp;
% $interp->exec('/request/support/subrequest_error_test');
</%def>

Calling helper
% eval {$m->comp('.helper')};
% my $error = $@;
<& /shared/check_error, error=>$error, lines=>2 &>

% if ($error) {
Back from error, checking request state:
<& support/display_req_obj &>
% }