UNIVERSAL::filename - file location inspector of modules
use UNIVERSAL::filename; # declare once # lib/Foo.pm package Foo; package Bar; 1; # any.pl Foo->filename; #=> 'lib/Foo.pm' Bar->filename; #=> undef
Similiar to the 'require' operator, UNIVERSAL::filename inspects %INC to for the file location of a particular module. No magic here, that means you can't find the file location of a module embeded in the file that belongs to another module.
The MIT License