Sorry but that is incorrect. You can have multiple heredocs with the same tag name as long as they are started and terminated correctly. In the OP's case the first one was not being terminated correctly.
In reply to Re^2: Can we use print <<HTML; twice in same file?
by fishmonger
in thread [Solved]: Can we use print <<HTML; twice in same file?
by Perl300
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |