Welcome to the Monastery | |
PerlMonks |
syntax errorby keiththirgood (Initiate) |
on May 21, 2017 at 15:39 UTC ( [id://1190804]=perlquestion: print w/replies, xml ) | Need Help?? |
keiththirgood has asked for the wisdom of the Perl Monks concerning the following question: I am new to all coding and I have no idea what is wrong here. I have a simple form I'm trying to send cleaned up results from to an email address. This is the error message I received: syntax error at feedback.cgi line 33, near "print MESSAGE "From" syntax error at feedback.cgi line 35, near "n\" syntax error at feedback.cgi line 79, near "}" Execution of feedback.cgi aborted due to compilation errors. This is the code near each of those lines: 32 print MESSAGE "To: keith\@wilsonstreetstudio.ca\n”; # Don't forget to escape this @ symbol! 33 print MESSAGE "From: " . $FORM{name} . ", reader\n"; 34 print MESSAGE "Reply-to: " . $FORM{email} . "(" . $FORM{name} . ")\n"; 35 print MESSAGE "Subject: Feedback from $FORM{name} \n\n"; 36 print MESSAGE "$FORM{name} wrote:\n\n"; 76 EndHTML 77 78 exit(0); 79 }
Back to
Seekers of Perl Wisdom
|
|