Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: scoping problems

by moritz (Cardinal)
on Jun 03, 2013 at 12:08 UTC ( #1036735=note: print w/ replies, xml ) Need Help??


in reply to scoping problems

If you have syntax errors and errors about undeclared variables, fix the syntax errors first. Sometimes the errors about undeclared variables are caused by mis-parses which again come from the syntax errors, so they go away once you fix the syntax errors. (Sometimes, not always).


Comment on Re: scoping problems
Re^2: scoping problems
by sundialsvc4 (Monsignor) on Jun 04, 2013 at 23:58 UTC

    Heh...   I’ve consistently found, with all such languages, that if there is even one “syntax error,” everything else is totally-bogus until that error is fixed.   Each syntax-error represents a point where the parser/lexer landed completely and unceremoniously on its (ice-skating) ass, then struggled valiantly to get back on its feet and to continue with the program ... knowing, alas, that it would never win the medal. (At this point, the only objective is to see how many additional times the skater might trip up.)   Until the source-code parses clean, no other messages the compiler/interpreter may generate are worth anything at all.   (At that point, it’s just trying to smile and keep up appearances.)

Re^2: scoping problems
by naturalsciences (Beadle) on Jun 07, 2013 at 08:46 UTC
    Thanks, that seems to be a good rule to remember

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-09-18 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (109 votes), past polls