How about using ExtUtils::MakeMaker or Module::Build and checking for the required version at build time?
I suppose this doesn't address the desire to use a different version if the one you're looking for isn't present though... Regards, Peter H. Ezetta On Wed, May 15, 2013 at 12:55:25PM -0700, shawn wilson wrote: > On Wed, May 15, 2013 at 3:28 PM, Octavian Rasnita <orasn...@gmail.com> wrote: > > From: "shawn wilson" <ag4ve...@gmail.com> > > > > > > > >> I asked this in #perl-help and was told that by the time perl checked > >> the version, the module was already loaded - is there a way to check > >> the version without completely loading the module so that when one > >> failed, I could move on to another module of the same name whose > >> version might succeed? > >> > >> I attached a tar file with a test, let me know if nothing is seen. > >> > > > > > > > This check is usually done at development time. > > Is there a reason you can't check which version of the modules you need are > > working with your code when you create the app? > > > > No, I suppose i can just do perl -Ilib for development and the like. > However, not checking that there is a satisfactory module version > anywhere along the namespace seems to make things more brittle than > they nead to be (and it's annoying me :) ). > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > Confidentiality Notice: This e-mail may contain proprietary information some of which may be legally privileged. It is for the intended recipient(s) only. If you believe that it has been sent to you in error, please notify the sender by reply e-mail and delete the message. Any disclosure, copying, distribution or use of this information by someone other than the intended recipient(s) is prohibited and may be unlawful. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/