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

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.