Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Tkx after coderef problem

by Anonymous Monk
on Jun 03, 2018 at 16:10 UTC ( [id://1215782]=note: print w/replies, xml ) Need Help??


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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1215782]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-03-28 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found