in reply to absolute pathname
FindBin
It fails miserably — dies of errors — when the work directory and the script are on different volumes.
FindBin also has other problems.