title: Perl - Can I get paths related to where a script resides and where it was executed from?
body: <p>I'm looking for a way to get two pieces of information:</p>
  
  <ul>
  <li>The full path of where a script resides including its filename</li>
  <li>The full path of where a script was executed from</li>
  </ul>
  
  <p>I know you can use <code>$0</code> to get the file name, but are there any other reserved variables that are native to Perl that will give me what I'm looking for?</p>
  
  <p>I'd rather not use any special modules, but if it is the only way, then so be it.</p>