I know that it is possible to trap a number of signals in perl using the %SIG hash. However, I cannot find which specific signal would correspond to the self generated termination due to the execution of the
function. In other words, I'm trying to define an event to be performed whenever the program exits normally. Is this possible using the %SIG hash? If not, how can I do this?