| 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" | |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Which version is this module?
by robobunny (Friar) on Jan 15, 2004 at 14:00 UTC | |
by Intrepid (Curate) on Feb 13, 2004 at 10:43 UTC | |
by Abigail-II (Bishop) on Feb 13, 2004 at 11:00 UTC | |
by liz (Monsignor) on Feb 13, 2004 at 11:40 UTC |