|Don't ask to ask, just ask|
More Scope related questions.by curiousmonk (Sexton)
|on Mar 29, 2013 at 04:22 UTC||Need Help??|
curiousmonk has asked for the
wisdom of the Perl Monks concerning the following question:
In the examples below, the variable the declaration of $b without my, local or our works like a global variable. I know this issue will be solved if strictures and warnings are enabled(One would be forced to declare a scope specifier) but without that, the expected behaviour should be that unless you explicitly declare it as 'our' the scope of the variable should end immediately after the curly brace
Shouldn't the default scope be local?