On Wed, Apr 28, 2004 at 05:36:51PM -0400, Greg London wrote:
> is there a quick and dirty way to find out where the heck
> perl is finding a module being use'ed is located?

You mentioned looking in @INC, but I think what you really want is the
%INC hash.

If you say:

   use MyModule;

There will be a key value pair in %INC that looks like:
   'MyModule.pm' => '/Library/Perl/MyModule.pm',

If you say:

   use My::Module;

it will say:
   'My/Module.pm' => '/Library/Perl/My/Module.pm',

-- 
"Maybe the Easter Bunny is just Santa Claus in an rabbit costume. A rabbit
can't go to everyone's house in one night." -- Samantha Langmead, age 6.
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to