in reply to Re: Perl Tk unable to return from MainLoop when implemented in a subroutine
in thread Perl Tk unable to return from MainLoop when implemented in a subroutine

Yes I am aware, I actually learnt how to create the GUI from these posts. That is why I do not understand my program hangs after the button click.

  • Comment on Re^2: Perl Tk unable to return from MainLoop when implemented in a subroutine

Replies are listed 'Best First'.
Re^3: Perl Tk unable to return from MainLoop when implemented in a subroutine
by BillKSmith (Monsignor) on Mar 23, 2016 at 15:13 UTC
    The referenced threads do appear to accomplish what you ask for. However, I consider it a bad idea to mix GUI with command-line interface in the same script. It may confuse your users more than help them. The somewhat non-standard code will be a maintenance problem for the life of your script.
    Bill