Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://982893]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-12-18 17:27 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (494 votes). Check out past polls.