http://www.perlmonks.org?node_id=1198058


in reply to How do I know if a package is on my server?

You can also do it this way and let Perl tell you the current version (Note the use of double quotes, required for Windows):
perl -e "use DateTime 99999" DateTime version 99999 required--this is only version 1.42 at -e line +1, <DATA> line 1.

"It's not how hard you work, it's how much you get done."