Mike Schilli's Friendly Neighborhood Perl Shop

Home
USArundbrief.com
Resume
CPAN Modules
Articles in English
Articles in German
Mike's Script Archive
English-Japanese Translation Trainer
Adventures with O'Reilly's Safari
10 Easy Steps to Become a California Driver
Unofficial perlmonks.com IRC Channel
My Collection of Outage Pages
Prisma (Computer Club Deutschland)
Mike's Monologues
Mike's Script Archive: wpm

wpm - Figure out where a perl module is installed


NAME

    wpm - Figure out where a perl module is installed


DOWNLOAD

wpm


SYNOPSIS

    wpm Module


DESCRIPTION

If you're using a module from CPAN which seemingly misbehaves, your best chances are to check its source code.

But where is it installed? If you take Date::Calc, for example, would you know that it's located in usr/lib/perl5/site_perl/5.6.0/i686-linux/Date/Calc.pm?

wpm takes a module name as a parameter and quickly determines where it is installed by walking the @INC array. The module name is expected in the same format in which Perl's use command expects them -- without the *.pm postfix and with double-colons (::) as hierarchy separators.


EXAMPLE

To determine where the popular module ExtUtils::MakeMaker has been installed, just run

    wpm ExtUtils::MakeMaker

on the command line and you'll get something like

    /usr/lib/perl5/5.6.0/ExtUtils/MakeMaker.pm


LEGALESE

Copyright 2002 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


AUTHOR

Mike Schilli <m@perlmeister.com>


Latest update: 20-Oct-2013