in reply to Re^2: Defining a sub within a sub: OK?
in thread Defining a sub within a sub: OK?
Subroutine names are package variables and therefore not "globally scoped". Only certain Perl variables fit the definition of "globally scoped".
the sub level1 is defined within an explicit scope, not within a code block.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Defining a sub within a sub: OK?
by AnomalousMonk (Archbishop) on Oct 14, 2009 at 22:50 UTC |