View previous topic :: View next topic |
Author |
Message |
rochesu -
Joined: 06 Aug 2003 Posts: 10
|
Posted: Mon Aug 18, 2003 8:57 am Post subject: PERL ERROR PLZ HELP |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Aug 18, 2003 12:27 pm Post subject: Re: PERL ERROR PLZ HELP |
|
|
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 |
|
|
rochesu -
Joined: 06 Aug 2003 Posts: 10
|
Posted: Wed Aug 20, 2003 2:29 pm Post subject: |
|
|
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 |
|
|
|