http://qs321.pair.com?node_id=661168


in reply to Full path to the current file?

If you want the full path name of where a module was loaded from, use %INC. For example:
use File::Basename; print "$INC{'File/Basename.pm'}\n";