Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Die vs. Exit

by mbethke (Hermit)
on Jul 20, 2012 at 20:05 UTC ( #982893=note: print w/ replies, xml ) Need Help??

in reply to Die vs. Exit

Both die and exit usually stop execution of the entire program, the difference being that die can be caught in an eval and thus serve as an exception mechanism. You likely want neither of these. All you have to do is exit your current callback with return after creating the message box. When you create it you can give it a callback for the confirmation button that clears the input field with the wrong data and puts the focus on it so the user immediately knows where to retry.

Sorry for not providing any code here, it's been over a decade since I last used Perl/Tk and I'd have to look up all the API again. Hope it helps anyway.

Comment on Re: Die vs. Exit
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-08-30 18:18 GMT
Find Nodes?
    Voting Booth?

    The best computer themed movie is:

    Results (293 votes), past polls