my $coderef = sub{ .... }; ## now $coderef is a reference to a subroutine, ## which can be executed like this: ## ## $coderef->(); # $coderef->( @args ) ## $SIG{ CHLD }= $coderef;