in reply to Re^2: mail2sms for Kannel
in thread mail2sms for Kannel

My Issue is this now, Lines: 21,23 is not working, can someone help me?

"Not working" - maybe you should have a closer look. Do those lines hold up signs with "ON STRIKE!" written on them?

You really make it hard to help you. Why did you inject all of those numbers into your source code? Perl is not 1970s home computer BASIC and complains loudly about them:

X:\>perl 1203732.pl Number found where operator expected at 1203732.pl line 2, near "2" (Missing semicolon on previous line?) Number found where operator expected at 1203732.pl line 9, near "9" (Missing semicolon on previous line?) Number found where operator expected at 1203732.pl line 12, near "12" (Missing semicolon on previous line?) Number found where operator expected at 1203732.pl line 19, near "19" (Missing semicolon on previous line?) Number found where operator expected at 1203732.pl line 20, near "20" (Missing semicolon on previous line?) Number found where operator expected at 1203732.pl line 21, near "21" (Missing semicolon on previous line?) Number found where operator expected at 1203732.pl line 23, near "23" (Missing semicolon on previous line?) Number found where operator expected at 1203732.pl line 25, near "25" (Missing semicolon on previous line?) Bareword found where operator expected at 1203732.pl line 25, near "* +Printing to" (Missing operator before to?) Having no space between pattern and following word is deprecated at 12 +03732.pl line 27. Warning: Use of "log" without parentheses is ambiguous at 1203732.pl l +ine 27. syntax error at 1203732.pl line 2, near "2" "use" not allowed in expression at 1203732.pl line 2, near "2 " "use" not allowed in expression at 1203732.pl line 3, near "3 " "use" not allowed in expression at 1203732.pl line 4, near "4 " "use" not allowed in expression at 1203732.pl line 5, near "5 " "use" not allowed in expression at 1203732.pl line 6, near "6 " "use" not allowed in expression at 1203732.pl line 7, near "7 " Substitution pattern not terminated at 1203732.pl line 35. X:\>

And for the "not working" lines: What do you expect to happen, what happens instead?

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^4: mail2sms for Kannel
by Pizu (Novice) on Nov 22, 2017 at 08:26 UTC

    Hi

    Thanks for your reply.

    Those numbers are line numbers... they are not in the code.

    the script works good without issue apart from line 21 and 23, am going to explain below.

    Also please note that this is my 1st perl script...

    My Issue is that am trying to read the body from the email and i need to add into a single line all the body

    and btw, I am not that stupid.. thanks.

      Those numbers are line numbers... they are not in the code.

      They are in between your <code> and </code> tags, ergo they are in the code.

      By putting them in there you are forcing anyone wishing to compile or run your code to do extra work (ie. remove the leading numbers). That's a barrier to you receiving help. It is up to you to decide how you proceed from here. Choose wisely.