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