for (@candidates) { $authentication.= $1 . ' ' if /^authentication\s+(\w*)/; }