in reply to Having trouble printing HTML page

Hmm. Are you sure you did a cut & paste instead of re-typing the code. It works fine for me, I just removed the CGI components:
print <<ENDHTML; <HTML> <HEAD> <TITLE>CGI Test</TITLE> </HEAD> <BODY> <H2>Congratulations!</H2> <P>We're glad to see you $firtName, members of the $lastName family ar +e always welcome here. It's hard to believe that you're already $Age +years old. My how time flies.</P> </BODY></HTML> ENDHTML
And it runs fine :
$perl -c foo.pl foo.pl syntax ok $foo.pl <HTML> <HEAD> <TITLE>CGI Test</TITLE> </HEAD> <BODY> <H2>Congratulations!</H2> <P>We're glad to see you , members of the family are always welcome he +re. It's hard to believe that you're already years old. My how time f +lies.</P> </BODY></HTML> ENDHTML
-- vek --