Find Perl module versions

posted by CodeGirl
Bookmark This Page:   Add 'Find Perl module versions' to Del.icio.us Add 'Find Perl module versions' to digg Add 'Find Perl module versions' to Simpy Add 'Find Perl module versions' to OnlyWire 

Add this to your .bashrc:

function pmver () { perl -M$1 -le "print $1->VERSION"; }

pmver $module
ex:

root@linuxwins:~/.cpan/build# pmver IO::Tty
1.05

This is actually part of Hack #4 of “Perl Hacks”

This entry was posted on Friday, June 30th, 2006 at 5:59 pm and is filed under Perl. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.


Protect Web Form!

Our VPS Hosting By RimuHosting
Java and Linux VPS Hosting by RimuHosting


Bad Behavior has blocked 33 access attempts in the last 7 days.