title: How to get the absolute path of the perl script I executed?
body: <p>I want to get the absolute path of the perl script I executed , for example</p>
  
  <p>my current working directory is /home/Program/A/B and there is a perl script in /home/Program/A/sort.pl</p>
  
  <p>When I under the directory of /home/Program/A/B and I type perl <code>../sort.pl</code> , I want to get the </p>
  
  <p>absolute path of <code>sort.pl</code> which is /home/Program/A/sort.pl</p>
  
  <p>I mean no matter what my current working directory is , I want to get the absolute path of the perl </p>
  
  <p>script is , How to achieve that?</p>
  
  <p>thanks</p>