in reply to print content in cgi and html
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: print content in cgi and html
by davido (Cardinal) on Sep 26, 2003 at 17:16 UTC | |
by jeffa (Bishop) on Sep 26, 2003 at 21:47 UTC | |
|
Re: Re: print content in cgi and html
by jasonk (Parson) on Sep 26, 2003 at 13:45 UTC | |
by barrd (Canon) on Sep 26, 2003 at 13:59 UTC |