Path::Tiny's absolute() uses getcwd() so it still resolves symlinks when getting the current directory.

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

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":