I have exercised a lot of features of this module, but sometimes have to install into an environment that has an older version of the module that doesn't have the features I have implemented.
So what's the best way to handle this? - Version check? - try{} catch{}?
All perl objects extend from the
UNIVERSALmodule whichYou can call
canon the module to test to see if a particular method is implemented in the package.I'd avoid using version checking, it makes testing and development much harder, but can work in a pinch.
Ultimately, you want a consistent runtime environment, so you could create a makefile that installs all of the dependencies at the version you need.