CGI is a text-based protocol that closely mimics HTTP/1.1 on the wire. HTTP/2 is a binary protocol designed to multiplex multiple transfers at the same time. I'm afraid that teaching
to speak HTTP/2 is out of question. Actually, the
defines the NPH output as an HTTP/1.0 or HTTP/1.1 response message, so unless there are servers that set
, no CGI script will speak HTTP/2, Perl or otherwise.