in reply to More Scope related questions.
G'day curiousmonk,
Your question appears to have been answered in the responses you've already received. I might just point out that $a and $b were poor choices for your examples as they're special variables that don't require declaration. Here's an excerpt from perlvar:
- $a
- $b
Special package variables ... Because of this specialness $a and $b don't need to be declared (using use vars, or our()) even when using the strict 'vars' pragma. ...
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: More Scope related questions.
by curiousmonk (Beadle) on Mar 29, 2013 at 07:22 UTC |