Category: | Utility scripts |
Author/Contact Info | bart |
Description: | Sometimes you wonder what version of a module you have, and it's easy enough to come up with a oneliner to do it, loading the module and printing out the value in its $VERSION package variable. However, life can be somewhat easier still, and so I wrapped this oneliner into a .bat batch file (for Windows/DOS). So copy this one line, paste it into a new text file "version.bat" (avoid adding newlines if you can), and save somewhere in your path — I saved it in my perl/bin directory, next to the perl executable.
Use it from the "DOS" shell as: version CGIor version DBD::mysql |
@perl -M%1 -le "print $%1::VERSION" |
Back to
Code Catacombs