Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Subs attached to Tk Buttons

by fletcher_the_dog (Friar)
on Aug 20, 2004 at 16:39 UTC ( [id://384649]=note: print w/replies, xml ) Need Help??


in reply to Subs attached to Tk Buttons

Another way to do it besides what others have already told you is to use a closure
$widget->Button(-text=>"mybutton",-command=>sub { mysub("a1","a2",@_) +};

Log In?
Username:
Password:

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

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

    No recent polls found