Sato
Sato

Reputation: 8582

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.

Upvotes: 3

Views: 1514

Answers (1)

Dondi Michael Stroma
Dondi Michael Stroma

Reputation: 4800

Just print it...

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

Upvotes: 7

Related Questions