Solved

executing Perl script

Posted on 1998-12-25
4
288 Views
Last Modified: 2013-12-25
I have written CGI script in PERL,
Error shown : "String Termination after the line content type"
Q : How to execute it?
print "Content-type: /text/html\n\n";

print<<EOF;
<HTML>
<BODY>
<H1> Hello world </H1>
</BODY>
</HTML>
EOF;
0
Comment
Question by:Bala123
4 Comments
 
LVL 1

Expert Comment

by:wisdom042597
Comment Utility
If you're getting an error, then you probably are executing the script (technically speaking).  I'd need to see the source to help debug the script - or at least the problem part.

Also, it depends upon whether you want to execute the script on your local machine, or on an internet server at your ISP.
0
 

Author Comment

by:Bala123
Comment Utility
Edited text of question
0
 
LVL 84

Expert Comment

by:ozo
Comment Utility
the closing tag to trminate a here-document should be alone on the line with no extra white space, and no extra semicolon
0
 
LVL 1

Accepted Solution

by:
cox earned 50 total points
Comment Utility
use this:

print "Content-type:/text/html\n\n";

print<<EOF;
<HTML>
<BODY>
<H1> Hello World </H1>
</BODY>
</HTML>
EOF

Take off the "  ; " at last line...
  ;))
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to count occurrences of each item in an array.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now