in reply to Re: Getting the absolute path of a script, without PWD
in thread Getting the shell's version of working directory, without PWD's help

Cwd::Ext's abs_path_nd uses Cwd's cwd so it still resolves symlinks for retrieving "the current directory" part.
  • Comment on Re^2: Getting the absolute path of a script, without PWD