in reply to pl/tk dialog box issue

Remember that calling $dialog->Show pops up the dialog and doesn't return until the user has clicked a button. Well, you're calling that function twice. What you need to do is call it once, and save the result in a variable so you can test it as many times as you need to. Like so:
my $dialog = $mw->DialogBox (-title => "Delete", -buttons => ["Yes", " +No"]); $dialog->Label (-text => "Are You Sure you Want to Save?")->pack (-sid +e => 'left'); my $result = $dialog->Show; return 0 if $result eq "No"; save() and exit if $result eq "Yes"; exit;

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.