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";
|
---|
In Section
Seekers of Perl Wisdom