Lot’s of ways to set your modules $VERSION in perl, some even have advantages. What I don’t know is why we do it? I mean the META.yml has a version… which is what cpan uses? so why do we set it in the module? what’s the point?
Lot’s of ways to set your modules $VERSION in perl, some even have advantages.
Share
So you can say
And the code will fail if you don’t have at least version 4.5.6 of Module::Name installed.
It is also helpful when you need to know what version is installed, you can just say:
This is roughly equivalent to
It will fail (becuase
Scalar::Utilis nowhere near version 99999999999999) and tell you the version number. In my case it says: