in reply to [Solved]: Can we use print <<HTML; twice in same file?

I’ll second the motion that you really should be using templates here.   (My personal favorite happens to be Template::Toolkit, but de nada.)   There is a fairly-excellent chance that the output of this program will need to be “tweaked,” in response to every whim of the Marketing Department ... ;-) ... and it is w-a-y-y-y easier to do this if the output is described by an external template, instead of being embedded in the Perl source.