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

Re^4: Can't get Dialog or messageBox to work from button

by Corion (Patriarch)
on Jan 11, 2016 at 16:27 UTC ( [id://1152493]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Can't get Dialog or messageBox to work from button
in thread Can't get Dialog or messageBox to work from button

Why do you think that Perl couldn't find displayMsg? The debug output certainly shows that it was found and called. If Perl couldn't find a subroutine, it would have raised an error which the OP would have seen.

Replies are listed 'Best First'.
Re^5: Can't get Dialog or messageBox to work from button
by hotchiwawa (Scribe) on Jan 11, 2016 at 16:50 UTC
    Probably that in Tk methods, Tk prefer to have the address of the functions (object reference).

      But that's what sub { ... } already returns. There is no need to have a subroutine reference that itself returns another subroutine reference when called, especially when you want the function call to happen instead.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-16 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found