use strict; $SIG{CHLD} = \&mywait; # value in the %SIG hash is an empty code ref