> : : 105 open (MAIL, "| /usr/lib/sendmail -oi -t"); 106 select(MAIL); 107 print < 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <1120084467.915588.161620@g49g2000cwa.googlegroups.com> [ref] => [htmlstate] => on_nl2br [postusername] => humphrey.c.chan@gmail.com [ip] => humphrey.c.chan [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) -->> > > : > : > 105 open (MAIL, "| /usr/lib/sendmail -oi -t"); > 106 select(MAIL); > 107 print < 108 From: [email]sa@bonjour.com[/email] > 109 To: [email]user1@bonjour.com[/email] > 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 >[/quote] 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 [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <42c340dd$0$14822$afc38c87@news.optusnet.com.au> [ref] => <1120084467.915588.161620@g49g2000cwa.googlegroups.com> [htmlstate] => on_nl2br [postusername] => Sisyphus [ip] => sisyphus1@nomai [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) -->> >> >> : >> : >> 105 open (MAIL, "| /usr/lib/sendmail -oi -t"); >> 106 select(MAIL); >> 107 print <> 108 From: [email]sa@bonjour.com[/email] >> 109 To: [email]user1@bonjour.com[/email] >> 110 >> 111 Subject: Alert !! Alert !![/quote][/quote] 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 "sa\@bonjour.com". 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. [quote][quote] >> 112 >> 113 >> 114 Please check the system >> 115 at your earliest convenience...... >> 116 >> 117 PS: You know who you arev !! >> 118 >> 119 >> 120 EOM[/quote] > > 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.[/quote] 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". regards, fabian [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <3iivbkFlntsrU1@individual.net> [ref] => <1120084467.915588.161620@g49g2000cwa.googlegroups.com> <42c340dd$0$14822$afc38c87@news.optusnet.com.au> [htmlstate] => on_nl2br [postusername] => Fabian Pilkowski [ip] => pilkowsk@inform [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => 1 [isfirstshown] => [attachments] => [allattachments] => ) --> Can't find string terminator "EOM" - beginner question - PERL Modules

Can't find string terminator "EOM" - beginner question - PERL Modules

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: [email]sabonjour.com[/email] 109 To: [email]user1bonjour.com[/email] 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 ...

  1. #1

    Default Can't find string terminator "EOM" - beginner question

    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: [email]sabonjour.com[/email]
    109 To: [email]user1bonjour.com[/email]
    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

    Please help me to resolve this.

    Thanks much,

    Humphrey

    humphrey.c.chan@gmail.com Guest

  2. #2

    Default Re: Can't find string terminator "EOM" - beginner question


    <humphrey.c.chan> wrote in message
    news:1120084467.915588.161620g49g2000cwa.googlegr oups.com...
    > 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: [email]sabonjour.com[/email]
    > 109 To: [email]user1bonjour.com[/email]
    > 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


    Sisyphus Guest

  3. #3

    Default Re: Can't find string terminator "EOM" - beginner question

    * Sisyphus schrieb:
    > <humphrey.c.chan> wrote
    >>
    >> 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: [email]sabonjour.com[/email]
    >> 109 To: [email]user1bonjour.com[/email]
    >> 110
    >> 111 Subject: Alert !! Alert !!
    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
    "sa\bonjour.com".

    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.
    >> 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.
    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".

    regards,
    fabian
    Fabian Pilkowski Guest

Similar Threads

  1. "Error Creating Control" and "Cast from String"
    By Lisa in forum ASP.NET Building Controls
    Replies: 1
    Last Post: August 14th, 01:53 PM
  2. Replies: 0
    Last Post: November 17th, 10:56 PM
  3. Replies: 0
    Last Post: October 6th, 06:21 PM
  4. Replies: 1
    Last Post: July 20th, 08:30 AM
  5. Is Terminator 2 "morphing metal effect possible?
    By ConTactMe in forum Adobe Photoshop Elements
    Replies: 3
    Last Post: July 14th, 06:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •