push(@total_content, $content); ... $response->add_content(join('', map $$_, @total_content));