in reply to Re^3: Best option for "switch/case" functionality? (magic numbers)
in thread Best option for "switch/case" functionality?
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:
BEGIN { BEGIN { require ...; ...->import( ... ) } }
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Best option for "switch/case" functionality? (BEGIN)
by Anonymous Monk on Jun 29, 2016 at 05:25 UTC | |
by tye (Sage) on Jun 29, 2016 at 12:37 UTC |