in reply to Syntax errors galore, need a good debugging

You use commas to string together things for print or for multiple sub args. The semi-colon is needed to end a statement.

The if that is causing the error is a new statement, so it needs to be preceeded by a semi-colon, or by the end of a block (closing curly).

Michael