in reply to Module Version Checking - Checking Multiple Installations of the Module

use does a require, which finds the first occourance of the module in @INC, and then calls the module's import, passing it the approps args. The import can then do whatever it wants.

In other words, the '1.005' isn't magical here, it just gets passed to Mime::Types::import, which can do with it what it will. I don't think require_version has anything in to to keep looking if $Mime::Types::VERSION is too low.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

  • Comment on Re: Module Version Checking - Checking Multiple Installations of the Module