Re the doublequote: that appears to be a typographic dblquote -- the kind that M$ Word sticks into one of its docs when thus configured. If you, OP, are using Word to write code, abandon all hope ... or switch to one of M$ text editors... or, better, pick one that does what you say it should; not what the maker/seller wants it to do.

Which one: depends on what you try and like. Editor preference tends to be right up there with religion when folks disagree. But -- at the (very high) risk of incurring the wrath of some folk (for my obscene failure to mention their favorite), here are just a few of the many, possibly useful (mostly free) choices:

This -- because I'm out of ambition -- is only a small sample what what you may want.

Now, some observations that may help you avoid having to repeat your statement that you "have no idea what is wrong here."

Your perl toolkit offers a variety of ways to find out what those messages mean. The one that leaps to mind, as simple and helpful (albeit not perfect) is use diagnostics; or even use diagnostics -verbose;. The latter will -- as the argument suggests -- offer a more extensive explanation of that's going wrong and/or how to fix it.

Heed Corion's answer -- fixing the doublequote may solve most of your problems and his warning against the deprecated and dangerous sendmail is gospel.

But.... as gently as I know how, you need to understand that listing single lines of code doesn't give us much to go on to help you. You reference $FORM{name} repeatedly, but don't show us the form's code. Please read On asking for help and How do I post a question effectively? (among other site-specific documents).

Also note that what seems likely to be an attempt to produce a newline at LN 35 with the slash trailing the 'n' instead of preceding it. Fixing the typographic quote isn't going to fix that.

Welcome. HTH.

++$anecdote ne $data


In reply to Re: syntax error by ww
in thread syntax error by keiththirgood

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.