Embedding HTML in Perl script

My webpage is hosted from perlscript(homepage.pl), i want to add piece of html code in the footer of the homepage. I simply pasted the html code at the end of the perl script as below...

========================================================

close(OUTSQL);

#+++++++++++++++++++++++++++++++++++++++++++++++++++++++#
#     Code to tag Homepage with WebSystem.        #
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++#

<SCRIPT SRC="/opt/apache/cgi-bin/new/includes.js/sdctag1.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT SRC="/opt/apache/cgi-bin/new/includes.js/sdctag2.js" TYPE="text/javascript"></SCRIPT>
<NOSCRIPT><IMG ALT="" BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1"
SRC="http://mypage.ric.com/dcsbun4it000000ch9k77ffc8_2t7o/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=8.0.3">
</NOSCRIPT>

exit;

# ok

==========================================================

while compiling the script i am getting following error msg.

[Tue Feb  1 13:32:32 2011] alarmmisii_web.pl: syntax error at ./homepage.pl line 6243, near "<SCRIPT SRC="/opt"
[Tue Feb  1 13:32:32 2011] homepage.pl: Execution of ./homepage.pl aborted due to compilation errors.

Perl ain't PHP, and even with PHP that wouldn't work.

You have to print the HTML part, eg

print << FOOTER;
<!-- Your footer stuff here -->
FOOTER

I put code like below.

=============================================================

close(OUTSQL);

#+++++++++++++++++++++++++++++++++++++++++++++++++++++++#
#     Code to tag AlarmMIS into Webtrend System.        #
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++#

print << FOOTER;
<SCRIPT SRC="/opt/apache/cgi-bin/new/includes.js/sdctag1.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT SRC="/opt/apache/cgi-bin/new/includes.js/sdctag2.js" TYPE="text/javascript"></SCRIPT>
<NOSCRIPT><IMG ALT="" BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1"
SRC="http://mypage.ric.com/dcsbun4it000000ch9k77ffc8_2t7o/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=8.0.3">
</NOSCRIPT>
FOOTER

exit;

# ok

====================================================

Getting following compilation error.

[Tue Feb  1 14:01:21 2011] homepage.pl: syntax error at ./homepage.pl line 6247, near "FOOTER"
[Tue Feb  1 14:01:21 2011] homepage.pl: BEGIN not safe after errors--compilation aborted at ./homepage.pl line 6248.

Sorry, my bad. Should be

print <<FOOTER;

(No space between the brackets and the keyword)

Thanks Pludi, its working fine.