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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pmpath
by particle (Vicar) on Jan 23, 2002 at 18:49 UTC | |
by sacked (Hermit) on Jan 24, 2002 at 08:43 UTC | |
by rjray (Chaplain) on Feb 09, 2002 at 02:15 UTC | |
by particle (Vicar) on Jan 24, 2002 at 08:52 UTC | |
by theorbtwo (Prior) on Jan 24, 2002 at 09:51 UTC | |
by jbisbee (Pilgrim) on Jan 25, 2002 at 03:02 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |