in reply to Tkx after coderef problem

I don't have Tkx installed, my guess is Tkx::after() might be checking the argument type.

What does the following print?

print ref $tkxfsr->{after}{$afterid}{sub};

Replies are listed 'Best First'.
Re^2: Tkx after coderef problem
by huck (Prior) on Jun 03, 2018 at 16:29 UTC

    CODE

      Uh-uh. Well, looking at your code now: I see you are re-entering Tkx::MainLoop from a callback! Is that even allowed? Secondly, you are capturing the top-level data structure in your callback. That is some questionable design as well. Better make it the smallest relevant work unit that you use in a callback.

        Oh wait a minute, you're not re-entering. It's the indenting of the code. Sorry about that. (And I give up.)