I don't think the server feels one way or another about you, but I could understand if perl gets a bit huffy about your code...

I would guess that this is line 176 (or pretty close to it):

</html>);
Now, if you have an editor that knows how to find matching bracket-like characters, you'd find that this close paren at the end of your tag does not have a corresponding open paren anywhere above it.

If you look at (or near) line 105, you'll find:

sub print_main { print qq( ## line 105 (I think)
and looking forward from that point for the matching close paren leads me to line 116 (I think), which shows:
Guestbook entries:);
That's where the trouble starts. I haven't looked in detail at all the rest of what you're doing here, but my initial (uninformed) impression is that it's probably a lot bulkier and more complicated-looking than it needs to be... e.g. you don't seem to be using CGI.pm's capabilities to their best advantage (perhaps others will comment in more detail on that).

update: On closer inspection, the problems with open and close parens is more widespread (and line 116 was not the real start of the trouble). The earlier response about changing your habits with "qq" is certainly on the mark, but apart from that, you really need to use an editor that can help you to check for unbalanced parens and other kinds of brackets. (I use "Control-Meta-F" and "Control-Meta-B" in emacs -- the former, if applied when the cursor is on an open bracket, will try to jump to the matching close bracket, or ring the terminal bell if there is no close bracket; likewise for the latter, looking backwards from a close-bracket character.)


In reply to Re: Linux server doesn't like me by graff
in thread Linux server doesn't like me by stonecolddevin

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.