Everybody is comparing general sub END to object method DESTROY for removing a dialog when command-period is pressed. END looks far too geneal to me (it's a global function). DESTROY is only useable when you're programming in OO style. Not everybody likes that; I' find Perl's OO syntax quite confusing. What about the __DIE__ sig handler? I haven't tested it, but it OUGHT to work when command-period is pressed. You set it up when the dialog is first displayed, and reset it when it's hidden. If you make it local, you even don't have to do that manually. local $dlg; local $SIG{'__DIE__'} = sub { dispose $dlg }; Bart. ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch