in reply to Re: Relative path in test file
in thread Relative path in test file

Whever it makes a difference, $FindBin::RealBin is better than $FindBin::Bin. So might as well always use it.

Replies are listed 'Best First'.
Re^3: Relative path in test file
by Anonymous Monk on Jul 07, 2022 at 20:35 UTC
    Whever it makes a difference, $FindBin::RealBin is better than $FindBin::Bin.

    why?

      Because $RealBin works in those circumstances, and $Bin doesn't. Worse, $Bin can cause the wrong code to be executed, and this could result if a privilege escalation.

      Those circumstances being the use of a link to the script.