TIMTOWTDI
You can also use "HERE documents", e.g:
print <<_EOF; <html><head> <title>My page title</title> </head> <body> ... blah blah </body></html> _EOF
The line containing _EOF must not contain any white space at the beginning or end or it will not work!
However I would highly recommend looking at a templating system such as the excellent HTML::Template module which will allow you to extract your HTML code from your perl code. This makes both far easier to maintain.
HTH ~ barrd
In reply to Re: print content in cgi and html
by barrd
in thread print content in cgi and html
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |