in reply to running remote perl scripts

Make your app asynchronous (such as by starting a thread, forking a process, or by using a GUI toolkit event system) so that the background task doesn't block the GUI.