Welcome to the Monastery | |
PerlMonks |
Re: Why to wrap Perl classes inside a Perl script into blocksby herveus (Prior) |
on Jun 01, 2015 at 17:03 UTC ( [id://1128602]=note: print w/replies, xml ) | Need Help?? |
Howdy!
You're on the right track. However, lexical variables' scope is delimited by the blocks. package does not make a new scope. Consider:
Versus:
yours, Michael
In Section
Seekers of Perl Wisdom
|
|