$text = $res->dom('h1, h2, h3, p')->each(sub { say 'text: ', shift->all_text });