I've started a module-starter
(with --builder=Module::Build
). I want to use SQL::Library
to collect my SQL into an .ini file... but in order to find the file during run time, I need to know its exact path. How do I get the path of the "data directory" of a module at run time?
Until now, I've been using FindBin (like "$FindBin::Bin/../../path/to/module/datafiles/foo.ini"
, but I found this is not very robust (For example, it seems to break when there are two programs with the same name in two different dirs in PATH).