in reply to Tk-Toplevel related

Are you sure those two external .pl files were meant to be executed via do? Unless they were, you should probably be executing them with system instead. That could certainly cause the problem you're seeing.

A word spoken in Mind will reach its own level, in the objective world, by its own weight