My first thought was to suggest 'perl -c filename' to do a syntax check, or to run the code through perltidy to see what it might do.

Instead, I downloaded the code, removed the first few lines where the download page gave the error message you received, had to comment out the use of EmailValid (which I did not have), named it as "too_many_errors.pl", and got the following with perl 5.6.1:

# perl -c too_many_errors.pl syntax error at too_many_errors.pl line 176, near ");" syntax error at too_many_errors.pl line 201, near ");" syntax error at too_many_errors.pl line 228, near ");" syntax error at too_many_errors.pl line 253, near ");" syntax error at too_many_errors.pl line 278, near ");" syntax error at too_many_errors.pl line 303, near ");" syntax error at too_many_errors.pl line 327, near ");" syntax error at too_many_errors.pl line 351, near ");" syntax error at too_many_errors.pl line 376, near ");" syntax error at too_many_errors.pl line 401, near ");" too_many_errors.pl has too many errors.

As best I could tell, these lines are in the else sections for update_* functions, are appear that there may be a closing parenthesis missing on each of those lines before the semi-colon.

Hope that helps somewhat. I don't do much work with objects personally, but I expect and hope that others will be able to provide you with other hints/tips/observations in that area.


In reply to Re: My perl interpreter won't even look at it. It's that bad. by atcroft
in thread My perl interpreter won't even look at it. It's that bad. by Anonymous Monk

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.