简体   繁体   中英

How to print plain text in CGI?

I'm using HTTP::Server::Simple::CGI

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

Is there something like $cgi->start_text("hello") ?

I want to output plain text.

Just print it...

 print $cgi->header("text/plain"),
       "hello";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM