PERL ERROR PLZ HELP

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
rochesu
-


Joined: 06 Aug 2003
Posts: 10

PostPosted: Mon Aug 18, 2003 8:57 am    Post subject: PERL ERROR PLZ HELP Reply with quote

I am a newbie. I recently wrote a perl program to accept information from the user and save the information as a text file in the server directory. The program worked fine. Now, i am writing a program that will output the information, when the user asks so. But, i have been getting errors, no matter what. I have deleted the whole of the program and written a very simple "Hello World" program to see if i get the error and i do. The "hello World" program is thus follows

#!/usr/local/bin/perl
print "Content-type:text/html\n\n";
print <<TO_PAGE;
<html>
Hello World
</html>
TO_PAGE


The error i get is as follows
Can't find string terminator "TO_PAGE" anywhere before EOF at nfo.pl line 3.

What did i do wrong. Plz help..... :cry:
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Aug 18, 2003 12:27 pm    Post subject: Re: PERL ERROR PLZ HELP Reply with quote

rochesu wrote:

The error i get is as follows
Can't find string terminator "TO_PAGE" anywhere before EOF at nfo.pl line 3.

What did i do wrong. Plz help..... :cry:

Just add a single blank line after the TO_PAGE line (press Enter after the last TO_PAGE and resave the file). This will solve the problem.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
rochesu
-


Joined: 06 Aug 2003
Posts: 10

PostPosted: Wed Aug 20, 2003 2:29 pm    Post subject: Reply with quote

Iam sorry to tell you this, but i found the same solution on that day itself. After posting the question in the forum here, i worked all the night and i found the same answer that you have given me.
Anyway, thank you very much for your reply.

Your server is really working great. :)
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group