Online I get: Software error: Execution of menu.pl aborted due to compilation errors. The code was working until I added
my $pass = $q->param('pass'); if ($pass ne "jerry"){ print "Content-type: text/html\n\n"; print "<HTML> \n"; print "The menu for tonight is \n"; print $words; print ". \n"; print "Hey bub, stop messin' with my menu!"; die; }

Here is the rest of the code does anyone see what is causing the error?
TIA
jg
#!/usr/bin/perl -w use strict; use CGI qw/:standard/; use CGI::Carp qw/fatalsToBrowser /; my $q = CGI->new(); # Parse Form Search Information # if it's a single form value, map the value as a scalar, other wise, +the value is # and arrayref my %FORM = map { $_, @{[ param($_) ]} > 1 ? [ param($_) ] : param($_) } param(); my $pass = $q->param('pass'); if ($pass ne "jerry"){ print "Content-type: text/html\n\n"; print "<HTML> \n"; print "The menu for tonight is \n"; print $words; print ". \n"; print "Hey bub, stop messin' with my menu!"; die; } my $words = $q->param('words'); if ($words eq ""){ $words = "no specials today"; } open (TEXTFILE,"+>/home/nolaflash/www/menu.txt") || die "where's the d +amn file? : $!"; print TEXTFILE "words="; print TEXTFILE $words; close (TEXTFILE) || die "close damn you : $!"; print "Content-type: text/html\n\n"; print "<HTML> \n"; print "The menu has been updated for you. \n"; print "The menu for tonight is \n"; print "$words. \n";

In reply to Local tests reveal no syntax error but... by jerrygarciuh

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.