in reply to Which module did I load?

Take a look at the %INC hash, which is documented in perldata perlvar.

$INC{'Module/Name.pm'} contains the filename that corresponds to Module::Name.

Update: Oops, the key is Module/Name.pm, not Module::Name.

Replies are listed 'Best First'.
Re^2: Which module did I load?
by pileofrogs (Priest) on Aug 21, 2006 at 21:06 UTC

    UPDATE OOPS! I misread your post. I'm a moron. Please slap me with a herring..

    Hmmm... I really need the full path.

    Module/Name.pm is helpful, but I really need

    /usr/lib/perl5/site_perl/5.8.8/Module/Name.pm so I know it's different from /usr/lib/perl5/site_perl/5.6.1/Module/Name.pm.

    Does that make sence?

      The values of %INC contain the full paths to the modules.