in reply to Call Intercepts

It's not a good idea to have your own subroutine called wait, since that is the name of a Perl builtin.