Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print plain text in CGI?

Tags:

perl

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.

like image 641
Sato Avatar asked Nov 23 '25 05:11

Sato


1 Answers

Just print it...

 print $cgi->header("text/plain"),
       "hello";
like image 106
Dondi Michael Stroma Avatar answered Nov 24 '25 21:11

Dondi Michael Stroma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!