Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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).

Replies are listed 'Best First'.
Re^2: scoping problems
by sundialsvc4 (Abbot) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036735]
and the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-06-19 17:08 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (114 votes). Check out past polls.