Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

executing Perl script

Posted on 1998-12-25
4
Medium Priority
?
332 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
ID: 1830292
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
ID: 1830293
Edited text of question
0
 
LVL 85

Expert Comment

by:ozo
ID: 1830294
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 100 total points
ID: 1830295
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

916 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