in reply to Just before subroutine returns

These two threads might be of interest: