http://www.perlmonks.org?node_id=152102


in reply to Re: Re: Re: Errors in my (simple?) CGI Script!
in thread Errors in my (simple?) CGI Script!

i've recently started assigning blocks of text/html to variables like so:
my $chunk = qq{ <b>Blah!</b><br><br> <i>Blah?</i> <u>Blah...</u> };
then i just print it.. the reason i started doing this as opposed to using heredocs is the pretty formatting; i strip out the tabs used to indent with a regex before printing.

as a side note, this seems to render pages MUCH faster than using heredocs. :)