LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-25-2003, 08:43 AM   #1
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
PERL error trying to run simple HTML page....


Hello all,

I'm so new to PERL it hurts!!!

I'm trying to get an originally plain-HTML page to run with some PERL scripts and have gotten stuck in the very beggining . I'm using:

print <<ENDHTML
...
ENDHTML

and putting the HTML code in there but when I try ro run it, via a browser, I get this error:

<><><><>ERROR<><><><><>
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: formtest.cgi

If you think this is a server error, please contact the webmaster

Error 500
<><><><>END ERROR<><><><><><>

I don't get a location for the error (line,column) so I don't really know where the error is.



<><><><>START CODE<><><><><>
#!/usr/bonsaitools/bin/perl
#
# Test form


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

print <<ENDHTML;

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/bugzilla/css/over.css">
</head>

<body>


....THE HTML CODE THAT GOES HERE, WORKS STANDALONE NO PROBS...


</body>
</html>

ENDHTML

<><><><><>END CODE<><><><><><>


Any thoughts for this PERL newbie????

Last edited by vous; 08-25-2003 at 08:44 AM.
 
Old 08-25-2003, 09:01 AM   #2
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
Oooopsie Daisy! The problem was with file permissions...

chmod did the trick....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
html page maker prabhakar_kushwaha Linux - Software 3 10-14-2005 09:17 PM
cgi perl : I cant get perl to append my html file... the_y_man Programming 3 03-22-2004 05:07 AM
HTML page break? patpawlowski Programming 4 02-12-2004 10:30 AM
Creating a simple html page from php? lucastic Linux - General 4 11-05-2003 08:48 AM
Simple Perl prog. getting Error 500 message. XxAndyxX Programming 1 07-06-2003 11:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration