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?
moduleperl
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?
Best Answer
Yes,
%INC
contains the full path a module was loaded from.Example: