in reply to How do I require a specific version?
You could put the "use" statement inside an eval block. This will let you conditionally include the module and also let you do the version checking.
Update:I didn't realize that op had not tried the version argument to use. I assumed that op wanted to do more things and handle the error. In hindsight, bad assumption.
|
---|