I got this from a co worker of mine (Prakash) and figured I'd
share this useful tool with you all...
You call it with a name the module in question and it gives
its location and the version.
Call it like so...
pmpath Data::Dumper
You get returned...
/usr/lib/perl/5.6.1/Data/Dumper.pm (2.102)
I use it quite a bit for comparing module versions on different
servers or find the location of the package to check out the
source
Here's the code for an executable called pmpath located in my '~/bin'
dir.
#!/usr/bin/perl
$module = shift;
($mod = $module) =~ s#::#/#g;
die ("Need a module name\n") unless $mod;
$mod .= '.pm';
require $mod;
print $INC{$mod}." (".${$module."::VERSION"}.")\n";
Have Fun, Jeff
--
__ () __ __ __ __
| o)--(_ | o) =| =| Jeff Bisbee #!/usr/bin/perl -w
|__)__|__)__)__|__| jbisbee@yahoo.com use strict;