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

Yes, your solution probably removes perl from %PATH% after the BEGIN block. I can think of two reasonable answers at the moment: (both untested)

  1. Move use Tcl; into the BEGIN block and use local when adjusting $ENV{PATH}.
  2. Prepend the Tcl directory to the PATH with $ENV{PATH} = $pathTclBin . ';' . $ENV{PATH}; instead of replacing PATH. (The PATH separator is colon on POSIX and semicolon on Windows.)

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

    Thank you, jcb. I think prepending the Tcl directory seems to me the best option at the moment!