Alex Rivera | Logout

How do I find which file Perl loaded when I use a module?

Asked 2008-12-04T17:42:35.243
48

in Perl, when I do use <module name> <ver>;, the system finds the .pm file for the library somewhere in the @INC path.

Is there a reliable way to which file was actually loaded?

Edit
Report

1 Answer

7

You want to look in the %INC variable, which records the filename it loaded for the libraries you load with do, require, or use. See perlvar for the details.

answered 2008-12-04T21:03:00.330

Your Answer