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

Whever it makes a difference, $FindBin::RealBin is better than $FindBin::Bin.

why?

Replies are listed 'Best First'.
Re^4: Relative path in test file
by ikegami (Patriarch) on Jul 11, 2022 at 00:57 UTC

    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.