LinuxQuestions.org
Review your favorite Linux distribution.
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 02-06-2002, 06:22 AM   #1
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 45
Perl print Multiline help!


I know that I am doing something fundamentally wrong with this code, but I have tried it at Uni and at home, both with the same error:

Can't find string terminator "END_of_Multiline_Text" anywhere before EOF at bloodyprogram.pl line 3.

The thing is, this code it straight from the Learning Perl book. Can someone please tell me what is going wrong! I'm tearing my hair out!!

Code:
#!/usr/local/bin/perl -w

print <<END_of_Multiline_Text;
Content-type: text/html

<HTML>
	<HEAD>
	<TITLE>Hello World</TITLE>
	</HEAD>
	<BODY>
	<H1>Greetings</H1>
	</BODY>
</HTML>

END_of_Multiline_Text
The perl path is correct BTW.

Last edited by CragStar; 02-06-2002 at 06:24 AM.
 
Old 02-06-2002, 08:48 AM   #2
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Original Poster
Rep: Reputation: 45
No need to worry, for some strange reason it now works....don't ask!

 
  


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
perl: get quotas and print on webpage hamish Programming 1 01-19-2005 11:52 PM
Perl-how to print to file satimis Programming 4 11-17-2004 10:56 PM
Multiline GtkTextView in gtk+ 2.0 zer0python Programming 0 04-06-2004 09:33 PM
perl print double in proper format rajatgarg Programming 1 01-30-2004 12:57 PM
multiline pattern search in a file mimi Linux - General 1 09-01-2002 12:22 PM


All times are GMT -5. The time now is 09:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration