Problem might be I've never been sure where to use commas instead of semi colons so I've only used commas for tables and forms and colons for everything else.

At your present skill level, two things might help:

1. Be very, very careful with your indentation, particularly when you're passing a bunch of stuff to print. You've got at least one case of

print a, b, c, ...
This makes life hard on whoever is reading the code, and make it a bit more difficult to map an error message back to the source text. By being careful with indentation, it's a lot easier to see quickly when a comma is needed instead of a semicolon.
print a, b, c, ...

There's a problem in your code that'll pop right out if you do this. (And, strangely enough, it looks very close to the problem I pointed out to you via /msg yesterday.)

2. If you're still having problems, use smaller statements. In this case,

print a; print b; print c;

It's a lot harder to embed an error in a long statement if you keep your statements short.


In reply to Re: Syntax errors galore, need a good debugging by dws
in thread Syntax errors galore, need a good debugging by sulfericacid

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.