more useful options | |
PerlMonks |
Re: print content in cgi and htmlby barrd (Canon) |
on Sep 26, 2003 at 13:20 UTC ( [id://294407]=note: print w/replies, xml ) | Need Help?? |
Hi Anonymous Monk, TIMTOWTDI
You can also use "HERE documents", e.g:
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 Section
Seekers of Perl Wisdom
|
|