Do you know where your variables are? | |
PerlMonks |
Re: How To Use Bootstrap Code in Perl Script?by golux (Chaplain) |
on Feb 16, 2016 at 02:43 UTC ( [id://1155320]=note: print w/replies, xml ) | Need Help?? |
Hi glennpm,
Whatever else you do (and a HEREDOC is perfectly fine for generating the HTML, as is Template Toolkit), the one thing you have to do differently with CGI is print headers, followed by at least a single blank line. For example:
BTW, another style I've gotten in the habit of in place of HEREDOCS is to quote a block of text with qq{ ... }, putting colons ':' at the beginning of each line for visual ease of reading, and finally reformat the text to remove the colons and print it out. For example:
In Section
Seekers of Perl Wisdom
|
|