in reply to [beginner is learning] How comes before I ask a question here, it is answered

I don't know what exactly went wrong in your case, I just want to point out two things:

  1. Leaving out the parens for the arguments of a subroutine call is fine if and only if that subroutine is declared previously. If not, it is parsed as indirect method call syntax, which is not what you want
  2. Sometimes syntax errors confuse the parser, and you'll first get some errors about undeclared or redefined variables, and then get the message about the real syntax error. In such a case ignore everything except the first syntax error, fix that syntax error, and try again.
  • Comment on Re: [beginner is learning] How comes before I ask a question here, it is answered

Replies are listed 'Best First'.
Re^2: [beginner is learning] How comes before I ask a question here, it is answered
by aquaplanet (Novice) on Feb 27, 2011 at 17:31 UTC
    1. You are right! I looked at my declarations again and saw that the subroutine was not declared. I have declared stubs of each subroutine in the top to be able to use the subroutines in any order and their implementations in the bottom of the file. However this was not the case...error corrected. Thanks!
    2. I guess it is hard in such a big (and expressive) language, experienced similar things in other languages such as C