Perl Monk, Perl Meditation | |
PerlMonks |
Re^4: Best option for "switch/case" functionality? (BEGIN)by tye (Sage) |
on Jun 29, 2016 at 02:28 UTC ( [id://1166832]=note: print w/replies, xml ) | Need Help?? |
Nope. Otherwise, 'use' couldn't work as it is just syntactic sugar for pretty much what I wrote (well, 'no' more than 'use' in this case). Now, if you put 'use' in a BEGIN block, then it could have impacts lexically scoped to the BEGIN block, but that is because it would be short for:
- tye
In Section
Seekers of Perl Wisdom
|
|