P is for Practical | |
PerlMonks |
Re^3: Defining a sub within a sub: OK?by jwkrahn (Abbot) |
on Oct 14, 2009 at 22:12 UTC ( [id://801224]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|