I have a lot perl code that does different things in test and production, and I want to lock my code to specific versions of CPAN modules in case there are some changes to some of them in the future which may possibly break my code.
So I want to use specific versions of all the modules I use. By use I mean
use XML::Smart
To use specific module refer only
Also to print error if module version you want is above to currently installed one
You can say
or
or
for backward compatibility
With reference from perldoc :