# extract title from template (in a beginner's tutorial!) my $title = $c->ua->get($msg)->res->dom->at('title')->text;