Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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]
jkva dusts the floor
[karlgoethebier]: Totally OT but my pleasure: Next week i'll have my first archery lesson.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-10-20 09:50 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (260 votes). Check out past polls.