if ($condition) { print <<HTML Content-type: text/html <html><head>.....</head> <body bgcolor="white"> ... blah blah HTML if ($variable == 1) { print $anotherVariable; } print <<HTML ... blah blah </body></html> HTML }
Or as I mentioned before use HTML::Template, it can handle all that for you too... go on try it, you know you want to. ;)
In reply to Re: Re: Re: print content in cgi and html
by barrd
in thread print content in cgi and html
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |