Letting me refer to $main::n as just plain $n.
Or $Whatever::The::Current::Package::Is::n ofcourse :-)
our() is a fairly recent introduction addition to perl. In the olden days, you'd have to use vars, which just switches off strict 'vars' for specific variables.
For additional fun and confusion see local.
In reply to Re^3: Using an "outer" lexical in a sub?
by Joost
in thread Using an "outer" lexical in a sub?
by cornballer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |