in reply to Link Tcl to a different tcl.dll on Windows

$ENV{'PERL_TCL_DL_PATH'} = $pathTclDLL;

That line (from the "update" section of your post) looks dubious to me.
It sets:
$ENV{'PERL_TCL_DL_PATH'} = $Bin . "\\tcltk2\\bin\\tcl86.dll"; but you probably want $ENV{'PERL_TCL_DL_PATH'} = $Bin . "\\tcltk2\\bin";
I suspect that the updated script works because $ENV{PATH} provides everything that's needed, and that you could remove all lines that mention $pathTclDLL - and the script would still work.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Link Tcl to a different tcl.dll on Windows
by Takamoto (Monk) on Jan 25, 2020 at 09:31 UTC

    You are right, Rob. It works. However, now No, this does not solves the issue. I am more confused than before. In any post I have seen (mainly dealing with Tkx which should rely on Tcl.pm) I have always seen $ENV{'PERL_TCL_DL_PATH'} used with dll.

    For now, it works only with the script I proposed above.

      That feature is for packagers like PAR/pp. Not for mixing incompatible bin/tcl
Re^2: Link Tcl to a different tcl.dll on Windows
by Anonymous Monk on Jan 25, 2020 at 07:10 UTC