in reply to Problems with print ID command

I think the problem, based on your example, is that you don't have the print statement correctly specified. It should look something like this (always use that "use strict;" and -w flag):
#!/usr/local/bin/perl -w use strict; print "Content-type:text/html\n\n"; print <<END; <html> <body> Bla bla bla </body> </html> END print "This is the next line of code";
The key being END must be on a line by itself

--Chris