Solved

perl cgi not working

Posted on 1998-12-25
2
164 Views
Last Modified: 2013-12-25
Simple perl cgi with hello.pl is not working.
The file in in cgi-bin of appache server.
Then why It says Strint terminated before end of file
0
Comment
Question by:Bala123
2 Comments
 
LVL 4

Expert Comment

by:martinag
ID: 1830290
Could you post the code so that we might have a look at it?

Martin
0
 
LVL 1

Accepted Solution

by:
cox earned 50 total points
ID: 1830291
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

792 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