Just another Perl shrine | |
PerlMonks |
Run-time equivalent of "use Module VERSION"?by Anonymous Monk |
on Jul 04, 2014 at 07:38 UTC ( [id://1092253]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Greetings Monks, What is the best run-time equivalent of use Module VERSION? eval "use Module 1.23" works but it involves string eval. require Module; Module->import(1.23) doesn't work. require Module; Module->VERSION(1.23) works only for modules which install a VERSION() method.
Back to
Seekers of Perl Wisdom
|
|