Call it like so...
pmpath Data::DumperYou 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;
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |