Re: Can't find string terminator "EOM" - beginner question
- From: "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 10:45:49 +1000
<humphrey.c.chan@xxxxxxxxx> wrote in message
news:1120084467.915588.161620@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello,
>
> 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
> line 107.
>
> Here's my program excerpt -->>
>
> :
> :
> 105 open (MAIL, "| /usr/lib/sendmail -oi -t");
> 106 select(MAIL);
> 107 print <<EOM;
> 108 From: sa@xxxxxxxxxxx
> 109 To: user1@xxxxxxxxxxx
> 110
> 111 Subject: Alert !! Alert !!
> 112
> 113
> 114 Please check the system
> 115 at your earliest convenience......
> 116
> 117 PS: You know who you arev !!
> 118
> 119
> 120 EOM
>
Looks to me that there's one or more spaces before EOM on line 120. Change
it so that EOM occurs at the very start of the line and see if that helps.
Cheers,
Rob
.
- Follow-Ups:
- Re: Can't find string terminator "EOM" - beginner question
- From: Fabian Pilkowski
- Re: Can't find string terminator "EOM" - beginner question
- References:
- Can't find string terminator "EOM" - beginner question
- From: humphrey . c . chan
- Can't find string terminator "EOM" - beginner question
- Prev by Date: Can't find string terminator "EOM" - beginner question
- Next by Date: Re: Installing a CPAN Module online
- Previous by thread: Can't find string terminator "EOM" - beginner question
- Next by thread: Re: Can't find string terminator "EOM" - beginner question
- Index(es):
Relevant Pages
|