mnooning has asked for the
wisdom of the Perl Monks concerning the following question:

Hello,

I am writing an event driven system wherein as one top level window is
closed, another pops up. I provide an Exit button on each window that
has it's own routine for cleaning up and exiting. If the user instead
clicks the upper right window cross hair to close the window, I still
want to go to the said cleaning up routine. The call below does not
work. $top of course is a Toplevel reference.

You've hit the nail on the head. \& takes a reference to the subroutine's implementation, whereas parameters are data that are passed at runtime. Probably the easiest way to achieve what you want here is to wrap your function call in another sub which doesn't require any arguments. This, in turn, can simply call your function, with arguments. Like so: