NAME

UNIVERSAL::filename - file location inspector of modules

SYNOPSIS

use UNIVERSAL::filename;    # declare once

# lib/Foo.pm
package Foo;

package Bar;

1;

# any.pl
Foo->filename;              #=> 'lib/Foo.pm'
Bar->filename;              #=> undef

DESCRIPTION

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.

AUTHOR

shelling <navyblueshellingford@gmail.com>

SEE ALSO

LICENSE

The MIT License