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.
shelling <navyblueshellingford@gmail.com>
The MIT License
To install UNIVERSAL::filename, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UNIVERSAL::filename
CPAN shell
perl -MCPAN -e shell install UNIVERSAL::filename
For more information on module installation, please visit the detailed CPAN module installation guide.