Solved

executing Perl script

Posted on 1998-12-25
4
303 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 84

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 50 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

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…
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 modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to dynamically set the form action using jQuery.

821 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