|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: How to import names from a dynamically required moduleby tobyink (Prior) |
| on Oct 02, 2012 at 22:06 UTC ( #996925=note: print w/ replies, xml ) | Need Help?? |
|
It's often a good idea to lift imports to compile-time using a BEGIN block.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||