Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
June 29, 2005, 7:34 pm
rate this thread
I am a beginner in Perl programming. Currently, I am using Perl
5.005_03 in my Solaris 8 server.
I am getting the following error message when running my program :
Can't find string terminator "EOM" anywhere before EOF at ./my-prog.pl
Here's my program excerpt -->>
105 open (MAIL, "| /usr/lib/sendmail -oi -t");
107 print <<EOM;
108 From: firstname.lastname@example.org
109 To: email@example.com
111 Subject: Alert !! Alert !!
114 Please check the system
115 at your earliest convenience......
117 PS: You know who you arev !!
Please help me to resolve this.
Re: Can't find string terminator "EOM" - beginner question
* Sisyphus schrieb:
As default here-docs do interpolate the string. That means, here you're
looking for any occurence of $scalars/@arrays/%hashes and replace it by
its current (stringified) value. Please escape that "@"-sign by writing
Second, the Subject is part of the header. You have to delete line 110
if that "Subject:"-line should set the subject of this mail.
And, in front of line 105 you marked with ":" that there are more lines.
Are there more lines after line 120 too? Make sure that there is also a
newline behind "EOM".
- » Can perl modules RECIPROCALLY 'use' one another?
- — Previous thread in » PERL Modules Announcements