start_html("Hello"), $cgi->h1("Hel...">

How do I print text in CGI?

I use 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 display plain text.

+3


source to share


1 answer


Just print it ...



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

      

+7


source







All Articles