如何在CGI中打印纯文本?

Sat*_*ato 3 perl

我正在使用 HTTP::Server::Simple::CGI

 print $cgi->header("text/plain"),
       $cgi->start_html("Hello"),
       $cgi->h1("Hello $who!"),
       $cgi->end_html;
Run Code Online (Sandbox Code Playgroud)

有类似的东西$cgi->start_text("hello")吗?

我想输出纯文本.

Don*_*oma 7

只需打印它......

 print $cgi->header("text/plain"),
       "hello";
Run Code Online (Sandbox Code Playgroud)