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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Run-time equivalent of "use Module VERSION"?
by Corion (Patriarch) on Jul 04, 2014 at 07:50 UTC | |
by LanX (Sage) on Jul 04, 2014 at 13:07 UTC | |
Re: Run-time equivalent of "use Module VERSION"?
by CountZero (Bishop) on Jul 04, 2014 at 13:50 UTC | |
Re: Run-time equivalent of "use Module VERSION"?
by DrHyde (Prior) on Jul 04, 2014 at 12:10 UTC | |
Re: Run-time equivalent of "use Module VERSION"?
by McA (Priest) on Jul 04, 2014 at 09:54 UTC |
Back to
Seekers of Perl Wisdom