Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: To read files from two dir

by graff (Chancellor)
on Apr 14, 2022 at 01:22 UTC ( [id://11142971]=note: print w/replies, xml ) Need Help??


in reply to Re^4: To read files from two dir
in thread To read files from two dir

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11142971]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-29 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found