How do I reference a location that is relative to a Perl module?
For example, I have some code in location A that uses a module in location B. Location B is 'somewhere' in the search path.
Relative to location B (let's call it location Bx) I have a config file, a template, or whatever. Given that this module (and the asscoiated files) may be moved to another location of the search path, how do I reference location Bx without hard coding something into the module about either location B or Bx?
I use BSD and $0 does not return a path.