title: How can a perl module find its own path?
body: <p>I'm creating my own module, lets call it <code>X::Y</code>. Of course, the module will be in the file <code>X/Y.pm</code>. </p>
  
  <p>Lets say <code>Y</code> needs to call an external program, <code>prog</code>. Ideally I'd just like to put <code>prog</code> in <code>X</code>, so I can run <code>X/prog</code>. I'd like to not have hardcode <code>X/prog</code>s full path, and for the module to work regardless of the current working directory set. </p>
  
  <p>How can I find the full path of a module from inside a module? Or is there a better way to do this?</p>