That REALLY DID NOT HELP. Apart from the fact that you tried to do exactly what I suggested that you NOT do (post thousands of lines of messy code), it appears that you did not post the entire script -- it ends abruptly in the middle of an "if" block that's nested inside a "for" loop.
And before the perl interpreter gives up at line 1199 with the syntax error ("missing right curly..."), it reports dozens of warnings about "'my' variable ... masks earlier declaration in same scope ...".
Note that the 1199 lines you managed to post DO NOT INCLUDE any of the line numbers cited in the error messages you've mentioned so far in this thread (1497, 1601, 1657).
I did notice something that looks like it could be a mistake at line 125:
foreach my $SRC_DIR(@dir) {{
Note the two open-curly brackets -- kinda looks like a typo. Funny thing... there's a close curly bracket at line 127 (that finishes the block that starts with the second open-curly). But there's no matching close-curly for that first open-curly -- across the nearly 1000 following lines (until the end of what's posted).
You're obviously out of your depth here. Consider some simple questions:
- Who did you "inherit" this from? Any chance they could help?
- Is there an earlier version that compiles (i.e. starts running, even it if crashes with some run-time error, instead of complaining about undeclared variables)?
- If so, what's the difference between that version and the version you posted unsuccessfully here? (HINT: use the unix/linux "diff" command)
You may think we're ganging up on you and giving you a hard time, but we're just trying to get you to do something with some hint of competence.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.